How to Check Hardware Specifications on Linux

How to Check Hardware Specifications on Linux

In this Linux tutorial, we will learn how to check the hardware specifications installed on the computer. The hardware that is checked is the processor, memory, hard disk, display adapter, network interface, and laptop battery.

Hardware List

We can display all hardware lists with one command lshw.

The above command immediately displays a list of hardware devices in the terminal. Since the list is very long, we can limit the list per page with the command less and continue to the next page by pressing the space key.

The hardware list can also be saved as a text or html file.

Hardware: CPU

Display processor information.

Example of the command above.

  • product/version: the processor used is an Intel Core i7-6500U
  • width: 64 bit processor architecture
  • configuration: 2 core 4 thread

Another way to display processor hardware information is the lscpu command.

Example of the results of the command.

Hardware: RAM

Show memory information.

Example of the snippet of the command above.

All information that is in the memory category including firmware and cache is also displayed. RAM-related is the System Memory section.

  • memory->size: the total installed memory capacity is 8GB
  • bank: There are 2 memory slots available on the laptop. DDR3 type RAM, different brands, each with a capacity of 4GB

Hardware: Disk

Show disk information.

Example of the command above.

From the information above, it is known that the attached disk is ATA type with a storage capacity of 1TB.

Hardware: Display Adapter

Show display adapter information.

Example of the command above.

From the information above, it is known that there are 2 display adapters, VGA Intel HD Graphics and AMD Radeon.

Hardware: Network

Show network interface information.

Example of the command above.

From the information above, it is known that there are 2 network interfaces, namely the Wireless interface and the Ethernet interface, both of which are products of Realtek.

The lscpi and lsusb commands

Another command that can be used to display all PCI hardware is lspci, including display, network, audio, etc.

Example of the command above.

The command to display all USB hardware is lsusb, including bluetooth, card reader, and webcam.

Example of the command above.

Hardware: Battery

Show battery information.

Example of the command above.

  • model: battery model or series
  • state: the status is charging or discharging
  • percentage: how much power is still stored
  • capacity: how much power storage capacity is, is the battery still good enough to be recharged

Good luck 🙂

Leave a Reply