Query System Specs in Linux
Here are some ways to find the specs for your system via the Linux terminal.
Motherboard
You might want to know what your motherboard manufacturer and model are. Run:
sudo dmidecode -t 2
And get:
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0 present.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: MSI
Product Name: Z170-A PRO (MS-7971)
Version: 1.0
Serial Number: G416187100
Asset Tag: Default string
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Default string
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0
CPU
To find out what CPU you have, run:
lscpu
And get info like:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 39 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Vendor ID: GenuineIntel
Model name: 12th Gen Intel(R) Core(TM) i5-1235U
CPU family: 6
Model: 154
Thread(s) per core: 2
Core(s) per socket: 10
Socket(s): 1
Stepping: 4
CPU max MHz: 4400.0000
CPU min MHz: 400.0000
BogoMIPS: 4992.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear serialize arch_lbr ibt flush_l1d arch_capabilities
Virtualization: VT-x
L1d cache: 352 KiB (10 instances)
L1i cache: 576 KiB (10 instances)
L2 cache: 6.5 MiB (4 instances)
L3 cache: 12 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-11
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
GPU
To find out what GPU you have, run:
sudo lshw -C display
And get something like:
*-display
description: VGA compatible controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 0c
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
resources: irq:172 memory:81000000-81ffffff memory:90000000-9fffffff ioport:1000(size=64) memory:c0000-dffff memory:b80000000-b86ffffff memory:aa0000000-b7fffffff
RAM
To find out how much RAM and what specs you have, run:
sudo dmidecode --type 17
And get:
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0 present.
Handle 0x003D, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x003C
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 8 GB
Form Factor: DIMM
Set: None
Locator: ChannelA-DIMM0
Bank Locator: BANK 0
Type: DDR4
Type Detail: Synchronous
Speed: 2133 MT/s
Manufacturer: 04CD
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: F4-2400C15-8GVR .
Rank: 2
Configured Memory Speed: 2133 MT/s
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: 1.2 V
Handle 0x003E, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x003C
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 8 GB
Form Factor: DIMM
Set: None
Locator: ChannelA-DIMM1
Bank Locator: BANK 1
Type: DDR4
Type Detail: Synchronous
Speed: 2133 MT/s
Manufacturer: 04CD
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: F4-2400C15-8GVR .
Rank: 2
Configured Memory Speed: 2133 MT/s
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: 1.2 V
Handle 0x003F, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x003C
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: None
Locator: ChannelB-DIMM0
Bank Locator: BANK 2
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Memory Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown
Handle 0x0040, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x003C
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: None
Locator: ChannelB-DIMM1
Bank Locator: BANK 3
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Memory Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown
Hard drive
To find the kind of hard drive, ssd, nvme, whatever that you have, install this tool:
sudo apt install hwinfo -y
And then run:
hwinfo --disk
And get something like:
23: PCI 00.0: 10600 Disk
[Created at block.245]
Unique ID: wLCS.tLGMu8l1c2F
Parent ID: wJe3.pzF4Pg50zTE
SysFS ID: /class/block/nvme0n1
SysFS BusID: nvme0
SysFS Device Link: /devices/pci0000:00/0000:00:1d.0/0000:2e:00.0/nvme/nvme0
Hardware Class: disk
Model: "SK hynix Disk"
Vendor: pci 0x1c5c "SK hynix"
Device: pci 0x1959
SubVendor: pci 0x1c5c "SK hynix"
SubDevice: pci 0x1959
Driver: "nvme"
Driver Modules: "nvme"
Device File: /dev/nvme0n1
Device Files: /dev/nvme0n1, /dev/disk/by-id/nvme-nvme.1c5c-534e42354e34383230313037303544335a-5348505034312d31303030474d-00000001, /dev/disk/by-path/pci-0000:2e:00.0-nvme-1, /dev/disk/by-id/nvme-SHPP41-1000GM_SNB5N482010705D3Z
Device Number: block 259:5
Drive status: no medium
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #6 (Non-Volatile memory controller)
24: PCI 00.0: 10600 Disk
[Created at block.245]
Unique ID: nghH.Fe8lbg82GC9
Parent ID: VCu0.BG8T6CV0dd8
SysFS ID: /class/block/nvme1n1
SysFS BusID: nvme1
SysFS Device Link: /devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme1
Hardware Class: disk
Model: "Sandisk Disk"
Vendor: pci 0x15b7 "Sandisk Corp"
Device: pci 0x501a
SubVendor: pci 0x15b7 "Sandisk Corp"
SubDevice: pci 0x501a
Driver: "nvme"
Driver Modules: "nvme"
Device File: /dev/nvme1n1
Device Files: /dev/nvme1n1, /dev/disk/by-id/nvme-WD_Blue_SN570_250GB_22177S808123, /dev/disk/by-path/pci-0000:01:00.0-nvme-1, /dev/disk/by-id/nvme-eui.e8238fa6bf530001001b448b4b90bc95
Device Number: block 259:0
Drive status: no medium
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #8 (Non-Volatile memory controller)
25: None 00.0: 10600 Disk
[Created at block.245]
Unique ID: OKyR.Fxp0d3BezAE
SysFS ID: /class/block/zram0
Hardware Class: disk
Model: "Disk"
Device File: /dev/zram0
Device Number: block 252:0
Drive status: no medium
Config Status: cfg=new, avail=yes, need=no, active=unknown
To see usage, filesystem type and capacity, run:
df -Th
And see something, including:
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 4.0G 2.1M 4.0G 1% /run
efivarfs efivarfs 64K 5.1K 54K 9% /sys/firmware/efi/efivars
/dev/mapper/data_aXRvZ-root ext4 220G 185G 24G 89% /
tmpfs tmpfs 20G 4.0K 20G 1% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p1 vfat 1020M 396M 625M 39% /boot/efi
/dev/nvme0n1p2 vfat 4.0G 2.5G 1.6G 62% /recovery
tmpfs tmpfs 20G 0 20G 0% /run/qemu
tmpfs tmpfs 4.0G 100K 4.0G 1% /run/user/1000
/dev/sda1 fuseblk 3.7T 1.9T 1.8T 52% /mnt/jtdrv
To test drive read/write speeds, run:
sudo hdparm -Tt /dev/nvme0n1
And get something like:
/dev/nvme0n1:
Timing cached reads: 33720 MB in 2.00 seconds = 16884.93 MB/sec
Timing buffered disk reads: 1726 MB in 3.00 seconds = 575.19 MB/sec
What other specs do you usually look for?