To know the hardware configuration of the Linux machine we can use the lshw command. In this tutorial, we will learn the steps to install and issue the command on Fedora Linux machine.
Fedora Linux machine.
lshw is the list hardware Linux command. The tool reports the hardware configuration on the machine. This includes motherboard and firmware configuration, memory and CPU configuration, cache and bus speed configuration, etc.
Command to install lshw
Launch the terminal window and issue the following command.
$ sudo yum install lshw
Enter the user credentials.
To know more information and command line switches for the command use the man command.
$ man lshw
To view the hardware configuration issue the command. Launch the terminal and issue the lshw command.
The tool output is verbose and to extract specific information we can use the class command line switch. For example to extract CPU configuration, we can use the command:
$ lshw -class CPU | more