10 Commands to collect hardware and system information in Linux.

Note:- All the commands mentioned below are executed as a root user. Hence use the super powers with utmost care. (cough !) and btw give this article a read as it’s similar to what we shall be digging inside the Linux terminal for system information etc.

  1. Dmidecode:- It’s nothing but DMI (some say SMBIOS) is a table to fetch data and displays useful system information like hardware details, serial numbers and BIOS versions, Processor etc. in a human readable format.

sudo dmidecode -t memory

In order to print information of the system, run this

sudo dmidecode -t system

for BIOS, here

sudo dmidecode -t bios

for processor

sudo dmidecode -t processor

  • Print Linux file system information:-

The most common and widely known command is here,

sudo fdisk -l

  • Print info about SATA Devices

sudo hdparm /dev/sda1

and now to print the geometry in terms of sectors, cylinders, heads, size etc. just use the -g option.

sudo hdparm -g /dev/sda1

  • How to print SCSI Devices information

just install the required package for concerned Linux distro like,

apt-get install lsscsi        [For Ubuntu and Debian]

yum install lsscsi             [For Red Hat based systems]

dnf install lsscsi               [For Fedora 21 and above]

  • Print PCI devices information

These devices include usb ports, graphic cards, network adapters etc.

lspci

  • Print USB controllers information:-

lsusb

also you can use the -v option to generate a detail info of each USB device.

  • How to collect Linux Block Device Information:-

these devices are storage devices like hard disks, flash drives etc.

lsblk

-a option can b used to view all block devices.

  • View CPU information:-

lscpu

  • View Linux System Hardware Information:-

lshw -short

And now finally we have the top command:-

top

That’s it for now and incase you missed my related article about basic system information gathering command then read here.

Hence these were the best 10 Commands to collect hardware and system information in Linux which i could curate as of now.

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

5 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

5 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

10 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

10 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

10 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

10 months ago