38.1 System Information

20210425 The hardinfo command provides a comprehensive graphical interface to every aspect of the system.

Hardware specifications are also available through wajig:

$ wajig sysinfo
Hostname:   olive
OS:         Ubuntu 20.04.2 LTS (Focal Fossa) 5.4.0-70-generic
Computer:   Dell Inc. XPS 13 9380/0KTW76, BIOS 1.11.0 07/06/2020
Processor:  Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz x 8 = 3999.93 bogomips
Video:      Intel Corporation UHD Graphics 620 (Whiskey Lake) 256M
Audio:      Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
Memory:     15GB RAM
IP:, (local) (external)
Uptime:     up 3 weeks, 2 days, 12 hours, 40 minutes since 2021-04-01 07:57:48
Load:       2 users, load average: 0.39, 0.74, 0.86
Reboot:     required for linux-base, linux-image-5.4.0-71-generic, linux-image-5.4.0-72-generic

The BogoMIPS measure for the processor reports the so-called bogus millions of instructions per second. The passmark metrics come from http://www.cpubenchmark.net.

Alternatively, the information can be determined from the use of a variety of other commands, including dmesg, dmidecode, lspci and lshw, and files like /proc/cpuinfo.

$ dmesg | grep "DMI:" | cut -c6- | cut -d" " -f 3-              # Machine model

$ lscpu
$ cat /proc/cpuinfo | grep 'name'| uniq                         # CPU
$ cat /proc/cpuinfo | grep process| wc -l                       # Number of processors

$ wget -qO- https://www.cpubenchmark.net/laptop.html |          # PassMark
  grep i5-8365U | grep '<li' | perl -p -e 's|^.*prdname">||' |  # Change CPU string
  perl -pe 's|<.*count">| |' | perl -pe 's|<.*||'               #  Removes the HTML markup

$ cat /proc/cpuinfo | grep bogomips                             # BogoMIPS

$ sudo lshw -C memory | egrep '(size|description)'              # Memory
$ cat /sys/block/nvme0n1/device/model                           # SSD Disk

$ sudo lshw -C network | egrep '(description|product|logical)'  # Network
$ lspci -k | grep -EA3 'VGA|3D|Display'                         # Video
$ lspci -k | grep -EA3 -i 'audio'                               # Audio
$ dmesg | grep -i input | grep -i touchpad                      # TouchPad
$ uname -r                                                      # Kernel

Your donation will support ongoing development and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.