lshw


 2015-02-27 1 minute read 0 Comments #command line | #linux

Summary

The command lshw is the list hardware command. The tool can be used to extract detailed information on the hardware configuration of the machine. It can report on memory configuration, firmware version, and a lot more.

Usage Examples

Query System for Network Interfaces

The below command will display a ‘short’ list of the hardware (less info) of the class, “-c”, net or network.

# lshw -short -c net

Additional class that lshw could query are (to list a few):

  • cpu
  • pci
  • bank
  • cache
  • disk
  • volume

 Categories: #linux


AI prompts, command-line cheat sheets & developer tips — prompt engineering guides, LLM evaluation tools, and AI tools for developers building with modern language models.

 2026