Forrest logo
back to the lshw tool

lshw:tldr:dcdb2

lshw: List all disks and storage controllers in tabular format.
$ sudo lshw -class disk -class storage -short
try on your machine

The sudo lshw -class disk -class storage -short command is used to display detailed information about the hardware components related to disks and storage devices in a shortened format.

Here is a breakdown of the command:

  • sudo: This is a command that allows the user to execute a command with administrative privileges. It stands for "superuser do".

  • lshw: This is the command to list hardware information. It stands for "list hardware".

  • -class disk: This option tells lshw to only display information about disk-related hardware components.

  • -class storage: This option tells lshw to only display information about storage-related hardware components.

  • -short: This option tells lshw to display the information in a condensed or shortened format, providing only essential details.

When the command is executed, it will provide a concise list of hardware information related to disks and storage devices, such as their names, descriptions, and other relevant information.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lshw tool