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.
lscpu command gives you information about the CPU and processing units. It does not have any other options or functionality.
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…
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.
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
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