Linux lshw Command.
In this tutorial, we will discuss on the lshw command which provides detailed report about the hardware on the system. The /proc directory helps to generate such detailed report for lshw command. The lshw command provides more detailed output than other hardware related commands in Linux.
1) Display full information
Just typing the lshw command itself provide all the detected hardware details
$ lshw
centos7.is.cc
description: Computer
product: KVM
vendor: Red Hat
version: RHEL 6.6.0 PC
width: 64 bits
capabilities: smbios-2.4 dmi-2.4 vsyscall32
configuration: boot=normal family=Red Hat Enterprise Linux uuid=D7AEBD6A-0E5F-E67D-833D-CA1324173E30
*-core
description: Motherboard
physical id: 0
*-firmware
description: BIOS
vendor: Seabios
physical id: 0
version: 0.5.1
date: 01/01/2007
size: 96KiB
*-cpu
description: CPU
product: Intel Xeon E312xx (Sandy Bridge)
2) Display information in short
As you can see it is difficult to read out such a big information in a single screen. So short command can be used to get a summary about the hardware of the system.
$ lshw -short
3) Display only memory information
We can list out the information regarding the memory and memory class.
4) Display processor information
cpu information can be displayed with the class processor. Please note, do not to use shot option in order to get full details.
5) Disk drives
We can also get information regarding storage and volume class along with the disk class. This will give better clarity on the storage on the system.
6) Network adapter information
Network class provides the information regarding the network adapter/interface. It will be a better option to not to use the short option to get full information.
7) Display address details with businfo
To get the details regarding the pci, usb, scsi and ide devices can be listed by using the businfo option.
If you need any further assistance please contact our support department.