LSHW: Get hardware information on GNU / Linux

Hardware

You will already know the tools lsusb, lspci, hwinfo, dmidecode, smartctl, acpi, etc., which we have in our GNU / Linux environments to achieve hardware information, although the information that can be obtained by reading the files of the pseudo-FS / proc, such as / proc / cpuinfo, etc. also helps us. Well, as always happens, there are more alternatives, quite a few more, such as Hwinfo, which not only has a tool for the CLI, but also a fantastic GUI that reminds us of programs like AIDA64 or Everest ...

But today we are going to talk about another tool, it's called lshw and it is also used to list and obtain information about all the hardware devices of our team. This can be highly recommended to know our hardware in depth and know what drivers or controllers we should install, or how to better configure a new kernel that we will install in our system, etc. Sometimes it is simply to be able to show information from the sensors, or the status ...

It is not usually installed by default, so you must install it first before using it, the package is in the official repositories, therefore simply install a package called lshw with the package manager of your distro ... Its name, as you can guess, It comes from Hardware Lister and is a small open source tool with which to get information about memory, cpu, cache, speed, networks, graphics card, I / O devices, etc. To do this, it obtains information from both / proc as from DMI table.

For use can be used both without Options for a more generic output of information as with some other interesting options. For example, to filter by type of bus or device. Like the lshw -shot or lshw -businfo options, or for specific device information, you can use the -class option followed by the class. For example for system information lshw -class system or memory with lshw -class memory… For more information, see man lshw.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.