Linux lshw Command.
By Jithin on November 29th, 2016
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
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
physical id: 0
physical id: 0
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.