Forrest logo
tool overview
On this page you find all important commands for the CLI tool lshw. If the command you are looking for is missing please ask our AI.

lshw

lshw (short for "list hardware") is a popular and powerful command-line tool in Linux environments that provides detailed information about the hardware components of a computer system. It is primarily used to gather comprehensive hardware configuration information.

Running the command "lshw" without any arguments displays a summary of the system's hardware. This includes details like CPU, memory, storage devices, network interfaces, and more.

Lshw supports various output formats such as plain text, HTML, XML, and JSON, offering flexibility to users for extracting and analyzing information as per their requirements.

The tool provides highly detailed information, including specifications, capabilities, configuration settings, and even driver details for detected hardware devices.

Lshw can be used to identify hardware compatibility and troubleshoot issues. If a certain hardware component is not recognized, lshw can help determine if it's a driver-related problem or an unsupported device.

By leveraging lshw's capabilities, system administrators can easily gather system information for inventory management, system upgrading, or debugging purposes.

Overall, lshw proves to be an invaluable utility for obtaining comprehensive hardware information in Linux systems, aiding in system administration, troubleshooting, and hardware analysis tasks.

List of commands for lshw:

  • lshw:tldr:1f941 lshw: Save all network interfaces to an HTML file.
    $ sudo lshw -class network -html > ${interfaces-html}
    try on your machine
    explain this command
  • lshw:tldr:48a80 lshw: Launch the GUI.
    $ sudo lshw -X
    try on your machine
    explain this command
  • lshw:tldr:9a537 lshw: List all hardware in tabular format.
    $ sudo lshw -short
    try on your machine
    explain this command
  • lshw:tldr:dcdb2 lshw: List all disks and storage controllers in tabular format.
    $ sudo lshw -class disk -class storage -short
    try on your machine
    explain this command
tool overview