2017-07-09 14:13:09 +00:00
|
|
|
# lshw
|
|
|
|
# Get hardware information on Linux
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Generate full information report about all detected hardware.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Display brief hardware information.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -short
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Display only memory information.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -short -class memory
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Display processor information.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -class processor
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Display the disk drives with the disk class.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -short -class disk
|
|
|
|
|
|
|
|
# Display information about the partitions and controllers also,
|
2020-02-29 23:26:18 +00:00
|
|
|
# specify the storage and volume class along with the disk class.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -short -class disk -class storage -class volume
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Network adapter information.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -class network
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Display the address details of PCI, USB, SCSI and IDE devices.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -businfo
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Generate report in HTML format.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -html > hardware.html
|
|
|
|
|
2020-02-29 23:26:18 +00:00
|
|
|
# Generate report in XML format.
|
2017-07-09 14:13:09 +00:00
|
|
|
lshw -html > hardware.html
|