2015/03/06

Hardware and Systeminformation from Commandline in Pisi Linux Part1 the lshw command

Hardware and Systeminformation from Commandline Part1 the lshw command


The best graphical tools watering the output of console commands in a prettier graphical form. Search Therefore, filtering the data you want ultimately clear and unerring, if you are the same as console tools like dmidecode, lspci, lsusb, lshw, hwinfo and sensors can befriend and store frequently needed information as a script or alias shortcuts for the terminal.

At the first the lshw command:

Note:Yomust install lshw as in the description before Graphical Hardware and Systeminformation in Pisi Linux

If you call the program lshw with root privileges, so you get much more detailed information on the individual components.

Type in the Terminal:

sudo lshw -businfo 

and you become this output:


When you type in the Terminal:

sudo lshw -short

and you see short Informations about your PC such as here:


As you can see in the preceeding output, lshw classifies different parts of the hardware using classes. So if you want to see only the information related to a particular class such as memory, you can run the lshw command using the -class option as follow :

sudo lshw -class memory

which will provide you detailed specifications about your computer’s memory and little else such as here:




To get a list of all the classes identified by lshw, you can execute it using the -businfo option as you see at begin from this Information.

The lshw command provides you an output in multiple file formats. For example, you can get the output in HTML, XML, text and a few more.
For instance, to get the output in HTML, you use the -html option as follow :

sudo lshw -html > hardware-info.html

After that has running look in your Home Folder there found you a html Document such as this:


You can open it with each Webbrowser such as Google-chrome or Firefox or an other Webbrowser, and here is the output from it: