Useful Commands to Collect System and Hardware Information in Linux
Useful Commands to Collect System and Hardware Information in Linux
View Linux System Information
uname
To get information about kernel-version, use ‘-v’.
To get the information about your kernel release, use ‘-r’.
To print your machine hardware name, use ‘-m’.
All this information can be printed at once by running ‘-a’.
View Linux System Hardware Information
sudo lshw
A summary of your hardware information, use -short.
Hardware information as a html file, use -html.
View Linux CPU Information
lscpu
Collect Linux Block Device Information
lsblk
To get all block devices on your system, use -a.
Collect USB Controllers Information
lsusb
To generate detailed information about each USB device, use -v.
Collect PCI Devices Information
lspci
To produce output in a tree format, use -t.
To produce detailed information about each connected device, use -v.
Collect SCSI Devices Information
sudo lsscsi
To show device sizes, use -s.
Collect Information about SATA Devices
sudo hdparm /dev/sda1
sudo hdparm -g /dev/sda1
View Linux File System Information
sudo fdisk -l
To Extract Information about Hardware Components
sudo dmidecode -t memory
sudo dmidecode -t system
sudo dmidecode -t bios
sudo dmidecode -t processor