2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/lshw
2020-02-29 23:26:18 +00:00

34 lines
794 B
Plaintext

# lshw
# Get hardware information on Linux
# Generate full information report about all detected hardware.
lshw
# Display brief hardware information.
lshw -short
# Display only memory information.
lshw -short -class memory
# Display processor information.
lshw -class processor
# Display the disk drives with the disk class.
lshw -short -class disk
# Display information about the partitions and controllers also,
# specify the storage and volume class along with the disk class.
lshw -short -class disk -class storage -class volume
# Network adapter information.
lshw -class network
# Display the address details of PCI, USB, SCSI and IDE devices.
lshw -businfo
# Generate report in HTML format.
lshw -html > hardware.html
# Generate report in XML format.
lshw -html > hardware.html