Skip to main content

Hardware Config

On Ubuntu you can use the “lshw” command to display the hardware configuration.

The following command will display the hardware configuration as JSON:

lshw -json

You can also use the -class option to display hardware information by class. For example, the following command will display the hardware configuration for the “memory” class:

lshw -json -class memory