Linux commands to display the system hardware information
lscpu command
kodingwindow@kw:~$ lscpu 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): 4 On-line CPU(s) list: 0-3 Vendor ID: GenuineIntel Model name: 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz CPU family: 6 Model: 140 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Stepping: 1 CPU(s) scaling MHz: 31% CPU max MHz: 4100.0000 CPU min MHz: 400.0000 BogoMIPS: 5990.40 ...
lshw command
kodingwindow@kw:~$ lshw WARNING: you should run this program as super-user. kw description: Computer width: 64 bits capabilities: smp vsyscall32 *-core description: Motherboard physical id: 0 *-memory description: System memory physical id: 0 size: 8064MiB *-cpu product: 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz vendor: Intel Corp. physical id: 1 bus info: cpu@0 version: 6.140.1 size: 845MHz capacity: 4100MHz width: 64 bits ...
lspci command
kodingwindow@kw:~$ lspci 0000:00:00.0 Host bridge: Intel Corporation Device 9a04 (rev 01) 0000:00:02.0 VGA compatible controller: Intel Corporation Tiger Lake-LP GT2 [UHD Graphics G4] (rev 01) 0000:00:04.0 Signal processing controller: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant (rev 01) ...
Hardware information using cat command
kodingwindow@kw:~$ cat /proc/interrupts | head -10 CPU0 CPU1 CPU2 CPU3 1: 0 0 2955 0 IR-IO-APIC 1-edge i8042 8: 0 0 0 0 IR-IO-APIC 8-edge rtc0 9: 0 10273 0 0 IR-IO-APIC 9-fasteoi acpi 14: 0 85 0 0 IR-IO-APIC 14-fasteoi INT34C5:00 16: 0 0 0 0 IR-IO-APIC 16-fasteoi idma64.2, i801_smbus 27: 0 0 0 0 IR-IO-APIC 27-fasteoi idma64.0, i2c_designware.0 37: 0 0 0 0 IR-IO-APIC 37-fasteoi idma64.3, pxa2xx-spi.3 40: 0 1678 0 0 IR-IO-APIC 40-fasteoi idma64.1, i2c_designware.1 120: 0 0 0 0 DMAR-MSI 0-edge dmar0
kodingwindow@kw:~$ cat /proc/cpuinfo | head -10 processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 140 model name : 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz stepping : 1 microcode : 0xb6 cpu MHz : 1300.127 cache size : 6144 KB physical id : 0
kodingwindow@kw:~$ cat /proc/meminfo | head -10 MemTotal: 7911628 kB MemFree: 2623644 kB MemAvailable: 4531468 kB Buffers: 51488 kB Cached: 2437040 kB SwapCached: 14048 kB Active: 1854048 kB Inactive: 2654764 kB Active(anon): 1218664 kB Inactive(anon): 1305352 kB
kodingwindow@kw:~$ cat /proc/zoneinfo | head -10 Node 0, zone DMA per-node stats nr_inactive_anon 326267 nr_active_anon 303328 nr_inactive_file 337390 nr_active_file 158846 nr_unevictable 36735 nr_slab_reclaimable 58902 nr_slab_unreclaimable 50433 nr_isolated_anon 0
Commands to display memory information
kodingwindow@kw:~$ free total used free shared buff/cache available Mem: 7911628 3369904 2633604 504844 2725544 4541724 Swap: 4194300 104960 4089340 kodingwindow@kw:~$ vmstat procs -----------memory---------- ---swap-- -----io---- -system-- -------cpu------- r b swpd free buff cache si so bi bo in cs us sy id wa st gu 0 0 104960 2643164 51876 2668680 0 19 503 1955 2596 12 9 3 88 0 0 0 kodingwindow@kw:~$ df Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 791164 2244 788920 1% /run /dev/nvme0n1p6 154211760 16097872 130207584 12% / tmpfs 3955812 31720 3924092 1% /dev/shm tmpfs 5120 8 5112 1% /run/lock efivarfs 184 178 1 100% /sys/firmware/efi/efivars /dev/nvme0n1p1 262144 63860 198284 25% /boot/efi tmpfs 791160 2568 788592 1% /run/user/1000
kodingwindow@kw:~$ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 1ea7:0066 SHARKOON Technologies GmbH [Mediatrack Edge Mini Keyboard] Bus 003 Device 003: ID 5986:2137 Bison Electronics Inc. Integrated Camera Bus 003 Device 004: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP) Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
kodingwindow@kw:~$ id uid=1000(kodingwindow) gid=1000(kodingwindow) groups=1000(kodingwindow), 4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),100(users),114(lpadmin)
What Next?
Linux commands for sorting and searching information
Linux commands to display the system processes information
Bash Shell Scripting
Advertisement