System Harware Information in Linux

All-In-One Tools

Hardware Lister:

Hardware Lister can be used for getting all the hardware information of a system. Some example usage are given below:

# apt-get install lshw lshw-gtk
# lshw (Displays detailed hardware information)
# lshw-gtk (Gives a nice graphical view of the hardware information) 
# lshw -short (Lists hardware in a compact format)
# lshw -class disk -class storage (Lists all disks and storage controllers in the system)
# lshw -html -class network (Lists all network interfaces in HTML)

Refer to the link in the References section to get the complete list of device classes.

Dmidecode:

Another tool which serves a similar purpose is dmidecode.

# apt-get install dmidecode
# dmidecode (Display detialed hardware information)
# dmidecode --type bios (Display information related to BIOS)

The various types permitted can be got from the manpage of dmidecode.

Component Information

Most of the below commands should be run as root.

BIOS:
Retrieve BIOS information such as Vendor, Version, Characteristics, etc.

# dmidecode --type bios
# biosdecode

System:
Retrieve a lot of useful information such as Manufacturer, Product Name, Version, Wake-up Type, etc.

# lshw -class system
# dmidecode --type system

Motherboard:
Prints motherboard information such as Manufacturer, Product Name, Serial Number and also information of onboard devices.

# dmidecode --type baseboard
# lspci

Processor:
Get processor information such as the Manufacturer, Version, etc.

# lshw -class processor
# dmidecode --type processor
# cat /proc/cpuinfo

Memory:
Get memory information such as the numver of memory slots, RAM information in each slot (if installed), etc.

# lshw -class memory
# dmidecode --type memory
# cat /proc/meminfo
# free -m

PCI/PCIe Slots and USB devices:
Retrieve information about onboard PCI slots, attached USB devices, etc.

# lshw -class bus
# dmidecode --type connector --type slot
# lspci
# lsusb

Hard Disk(s):
Retrieve hard disk(s) details such as size, model, etc.

# lshw -class storage -class disk --class volume
# fdisk -l
# hdparm -I /dev/sda

VPD:
VPD stands for "vital product data" information that can be found in almost all IBM and Lenovo computers.

# vpddecode

References

http://www.cyberciti.biz/faq/linux-list-hardware-information/
http://www.cyberciti.biz/tips/querying-dumping-bios-from-linux-command-p...
http://legroom.net/2010/05/05/get-biosmotherboard-info-within-linux
http://www.cyberciti.biz/tips/linux-command-to-gathers-up-information-ab...
http://www.cyberciti.biz/faq/find-hard-disk-hardware-specs-on-linux/

http://www.nongnu.org/dmidecode/
http://ezix.org/project/wiki/HardwareLiSter#Deviceclasses

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.