Posted on

lshw – Hardware Info

Hardware Lister is console app listing system information, listing hardware components etc.

Ubuntu installation

Ubuntu comes default with the application installed so this command will list your what hardware your system contains.

sudo lshw

This command provides an abundance of info printed to your console.

To get an overview of the possbilities use the --help keyword.

lshw --help
Hardware Lister (lshw) - unknown
usage: lshw [-format] [-options ...]
lshw -version

-version print program version (unknown)

format can be
-html output hardware tree as HTML
-xml output hardware tree as XML
-short output hardware paths
-businfo output bus information
-X use graphical interface

options can be
-class CLASS only show a certain class of hardware
-C CLASS same as '-class CLASS'
-c CLASS same as '-class CLASS'
-disable TEST disable a test (like pci, isapnp, cpuid, etc. )
-enable TEST enable a test (like pci, isapnp, cpuid, etc. )
-quiet don't display status
-sanitize sanitize output (remove sensitive information like serial numbers, etc.)
-numeric output numeric IDs (for PCI, USB, etc.)
-notime exclude volatile attributes (timestamps) from output

Get a better overview

sudo lshw -html > ~/sysinfo.html && firefox ~/sysinfo.html


  • -html tells the app we want the info as html which can be viewed in your web browser.
  • > tells the system to send the data to other destination than default which is your console.
  • ~/sysinfo.html provides the system with the destination, which in this case is a file in your homefolder.
  • && informs the system to execute a command if the first command executed without errors – in this case we want to show the content of the file.
  • firefox ~/sysinfo.html is the instruction opening the Firefox webbrowser using the sysinfo.html just generated in your homefolder.

Manjaro installation

Manjaro does not default having this app installed. This is to be done with this command:

sudo pacman -s lshw