Check Hardware configuration with Linux command line

There are many commands available to check hardware information of your Linux system. Some commands report only specific hardware components like CPU or memory while the rest cover multiple hardware units.


The lscpu command gives you information about the CPU and processing units. It does not have any other options or functionality.


The lspci is another command line tool that lists all the PCI buses and details about the devices connected to them like VGA adapter, graphics card, network adapter, usb ports, SATA controller…


The lshw is a general purpose utility that reports detailed and brief information about multiple hardware units like CPU, memory, usb controller, disk, etc. Lshw extracts the information from different “/proc” files.

lshw -short

You can list all scsi/sata devices like hard drives and optical drives with this  command


This command shows you the USB controllers and details about devices connected to them.  You can also use the  option -v to print detailed information about each usb port.


This command gives you brief information about various partitions, their mount points and the used and available space on each.
You can run the df command with the -H parameter.

df -H

The dmidecode command is different from all other commands. It extracts hardware information by reading data from the DMI tables.
For example if you want to see information about processor use command:

sudo dmidecode -t processor
For information about memory use:
sudo dmidecode -t memory

For infromation about BIOS use:

sudo dmidecode -t bios

Bojan Markovic

Bojan Markovic

IT professional with almost 20 years of experience, mostly integrator of IT services in TV & Radio broadcasting and web based projects. Expert in broadcasting playout systems, video streaming services and SEO.

Leave a Reply

Your email address will not be published. Required fields are marked *

6 + 4 =