Check Hardware Information in Linux

12

Computer hardware is a combination of various components, such as motherboard, CPU, GPU, memory, and other I/O devices. It is good for Linux users to have a basic knowledge of the hardware components of the system that they are currently using. This will help administrators to manage the required devices accordingly.

This article shows you how to check the hardware information in Ubuntu using various methods. These options are discussed in the sections that follow.

Checking Hardware Information Using HardInfo

To get hardware information using HardInfo, you first need to install HardInfo on your Linux system. Start the installation process by opening the terminal and running the following command:

$ sudo apt-get install hardinfo

After installing HardInfo on your system, open the utility via the command-line to see the hardware information in the GUI. To open HardInfo, simply enter the following command:

D:KamranFeb16WardaLinux Hardware Infoimagesimage3 final.png

A new window will open after you run this command. If you click on “Summary,” you will get all system-related information, including the processor, OS, display, etc.

D:KamranFeb16WardaLinux Hardware Infoimagesimage2 final.png

To check the status of the Operating System, including the version, PC name, distribution, etc., go to the “Operating System” window. A screen will appear with detailed information, as shown in the image below:

D:KamranFeb16WardaLinux Hardware Infoimagesimage5 final.png

To check the system’s kernel version, select the “Boot” window. This window will show you the updated version information with the date and time.

D:KamranFeb16WardaLinux Hardware Infoimagesimage4 final.png

To get package information, click “Processor.”

D:KamranFeb16WardaLinux Hardware Infoimagesimage7 final.png

Clicking “Memory” will display the memory status, including the total memory, available memory, used memory, cache, active, inactive status, etc.

D:KamranFeb16WardaLinux Hardware Infoimagesimage6 final.png

Select “Input Devices” to get more icons to view specific system details. Click a specific icon to reveal relevant details related to that icon.

D:KamranFeb16WardaLinux Hardware Infoimagesimage9 final.png

To obtain details about the system network, click the “Network” option:

So, this is how you can find hardware system details using HardInfo.

If you prefer to check the hardware information via the command-line, then follow the steps mentioned below.

Checking Hardware Information Using the Command-Line

This section covers some important commands that can be used to fetch hardware information via the terminal. The ishw command is used for this purpose.

System Hardware Information

The “lshw” utility helps users to print system information such as hardware components, which can include Cpu, disks, cache, etc. Though this utility is built-in, but if your system does not have this utility, then you can install it using the following command:

$ sudo apt-get install lshw

D:KamranFeb16WardaLinux Hardware Infoimagesimage12 final.png

Now, to print the hardware information, use the following command:

D:KamranFeb16WardaLinux Hardware Infoimagesimage10 final.png

The output of this command includes every minor detail related to the system. To get a summary of this information, use the “short” command. The information will be printed in a table organized into columns:

D:KamranFeb16WardaLinux Hardware Infoimagesimage11 final.png

CPU Information

The “lscpu” command will fetch CPU details from the “sysfs” files.

To display cpu information, use the following command:

D:KamranFeb16WardaLinux Hardware Infoimagesimage13 final.png

Block Device Information

The “lsblk” command is used to collect block device, storage, and other information related to the hard disk, flash drive, etc.

To list data using this command, issue the following in the terminal:

The output will provide a list of information on the screen. To check all block devices, issue the following:

D:KamranFeb16WardaLinux Hardware Infoimagesimage14 final.png

USB Controller Information

To view information about the devices that are connected to the system, including USB controllers, enter the following command:

D:KamranFeb16WardaLinux Hardware Infoimagesimage15 final.png

Conclusion

This article provided a brief introduction to getting Linux system hardware information using the HardInfo utility. We have also displayed all the necessary commands for readers who want to check this through the command-line.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More