Sunday, December 4, 2016

How to show hardware info from command line Ubuntu


On ubuntu you can show hardware information from the command line, there is a dedicated command for showing hardware information such as CPU, GPU, RAM, HDD, wifi, ethernet, etc.

To show hardware information from the command line we can use the 'lshw' command, this command always ask you to run with super user permission although it also works without it.

If you just run lshw without any parameter it will show everything, this can be difficult to read, so i suggest use special parameter to show on specific hardware you wish to see.

For example to see hardware information about CPU, simply run this command:
sudo lshw -class cpu

showing hardware information for graphic card (GPU)
sudo lshw -class display
showing hardware information for ram
sudo lshw -class memory
showing hardware information for network device (wifi and ethernet/LAN)
sudo lshw -class network
showing hardware information for storage device
sudo lshw -class storage
showing hardware information for multimedia device
sudo lshw -class multimedia

No comments:

Post a Comment