Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

lshw

📅 2014-May-29 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

lshw is a neat little command to list out the details of your computer hardware. The text display is in the form a tree, like in the Device Manager on Windows. Remember to run this program with superuser privileges, else the displayed information will not be complete nor correct!

$ sudo lshw

To get a nice little table of all the devices on your computer:

$ sudo lshw -short

To see the details of a particular class of devices, memory for example:

$ sudo lshw -short -C memory

If you would prefer a GUI to explore the hardware hierarchy, then install the GTK program of lshw and try it:

$ sudo apt install lshw-gtk
$ sudo lshw -X

Click the Refresh button to begin the scan of your computer.

Tried with: Lshw B.02.16 and Ubuntu 14.04