Open In App

lshw command in Linux with Examples

lshw(list hardware) is a small Linux/Unix tool which is used to generate the detailed information of the system’s hardware configuration from various files in the /proc directory. lshw can also report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache memory configuration, bus speed, etc on DMI-capable x86 or IA-64(Itanium family of 64 microprocessors) system and some PowerPC machine. This command needs root permission to show full information else partial information will be displayed.

Syntax:



lshw [-format] [-options ...]

Where format can be:

Example 1: To display full hardware information.



Input:

Output:

Example 2: Lists hardware in a compact format.

Input:

Output:

Options:

Article Tags :