Category: Linux Terminal

Added: 20th of May 2018

Viewed: 1181 times

List hardware information using the terminal

lshw extracts detailed information about the hardware in your machine. It can report on your motherboard, CPU, Memory, Graphics and other hardware.

To list your hardware information, enter the following command in the terminal. You will need to enter your root password.

sudo lshw


lshw outputs a lot of information, you can shorten this by using the -short command
sudo lshw -short


Output using lshw -short command

If you want a hard copy of the information you can also export the hardware information to an .html document which can then be viewed in your web browser.

The .html document will be created on your desktop. Just remember to replace username with your own username, and file_name with your own file_name
sudo lshw -html > /home/username/Desktop/file_name


Other Tips & Tutorials

Linux Terminal

Create a new folder and file using the mkdir and touch commands using the terminal in Linux

Posted: 16th of August 2020

Views: 137

Linux Terminal

Convert a PDF document to text or html using pdftotext, pdftohtml in Linux using the terminal

Posted: 3rd of August 2020

Views: 167

Linux Terminal

List files in a directory using the ls command

Posted: 22nd of July 2020

Views: 168

Linux Terminal

How to access HP Linux Imaging and Printing System set up on Ubuntu using the terminal

Posted: 13th of November 2019

Views: 497

Linux Terminal

Where are the log files located in Linux

Posted: 16th of October 2019

Views: 562

Linux Terminal

Oracle VirtualBox, Unable to insert virtual optical disk

Posted: 11th of October 2019

Views: 1898

Linux Terminal

Oracle VirtualBox only displaying 32-bit version(s), when setting up new Virtual Machine on Linux

Posted: 11th of October 2019

Views: 657

Linux Terminal

The Linux uptime command

Posted: 3rd of October 2019

Views: 699

Linux Terminal

Using GParted in Linux to format a hard drive, flash drive, SD Card

Posted: 17th of September 2019

Views: 1024

Linux Terminal

Copy .iso image to USB flash drive using dd command in Linux using the terminal

Posted: 3rd of September 2019

Views: 282