GNU/Linux Getting System Information List Hardware



lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc.

$ sudo lshw | less (or more)
$ sudo lshw -html > myhardware.html
$ sudo lshw -xml > myhardware.xml

To show PCI info

$ lspci -tv

To see USB info

$ lsusb -tv

To display BIOS informations

$ dmidecode -q | less

To see specific information about disk (disk sda in example) you can use:

$ hdparm -i /dev/sda

Few additional utilities/commands will help gather some extra information:

$ smartctl -A /dev/sda | grep Power_On_Hours # How long has this disk (system) been powered on in total
$ hdparm -tT /dev/sda # Do a read speed test on disk sda
$ badblocks -s /dev/sda # Test for unreadable blocks on disk sda