snippetbashTip
lshw — List detailed information about hardware configurations as root user. See also: `inxi`, `hwinfo`, `d
Viewed 0 times
commandhardwaredetailedcliinformationlshwaboutlist
linux
Problem
How to use the
lshw command: List detailed information about hardware configurations as root user. See also: inxi, hwinfo, dmidecode. More information: <https://ezix.org/project/wiki/HardwareLiSter>.Solution
lshw — List detailed information about hardware configurations as root user. See also: inxi, hwinfo, dmidecode. More information: <https://ezix.org/project/wiki/HardwareLiSter>.Launch the X11 GUI (if available):
sudo lshw -XList all hardware in tabular format:
sudo lshw -shortList multiple class of hardware (all disks and storage controllers) in tabular format:
sudo lshw {{[-c|-class]}} disk {{[-c|-class]}} storage -shortSave all network interfaces to an HTML/XML/JSON file:
sudo lshw {{[-c|-class]}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}List network interfaces without revealing sensitive information (IP addresses, serial numbers, etc.):
sudo lshw {{[-c|-class]}} network -sanitizeList a particular class of hardware:
sudo lshw {{[-c|-class]}} {{system|bridge|memory|processor|address|storage|disk|tape|bus|network|display|input|printer|multimedia|communication|power|volume|generic}}Code Snippets
Launch the X11 GUI (if available)
sudo lshw -XList all hardware in tabular format
sudo lshw -shortList multiple class of hardware (all disks and storage controllers) in tabular format
sudo lshw {{[-c|-class]}} disk {{[-c|-class]}} storage -shortSave all network interfaces to an HTML/XML/JSON file
sudo lshw {{[-c|-class]}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}List network interfaces without revealing sensitive information (IP addresses, serial numbers, etc.)
sudo lshw {{[-c|-class]}} network -sanitizeContext
tldr-pages: linux/lshw
Revisions (0)
No revisions yet.