Commands to check System & Hardware Information
Last updated on March 12th, 2018 at 08:57 pm
Hello linux-fanatics, in this post i will be discussing some important that will make your life as System Administrator. As we all know being a good System Administrator means knowing everything about your IT Infrastructure & having all the information about your servers, whether its hardware or OS. So following commands will help you out in extracting out all the hardware & system information.
1- Viewing system information
$ uname -a
It will provide you all the information about your system. It will provide you with Kernel name of system, Hostname, Kernel version, Kernel Release, Hardware name.
2- Viewing Hardware information
Using lshw will show you all the Hardware information on your screen.
3- Viewing Block Devices(Hard disks, Flash drives) information
lsblk command prints all the information regarding block devices on screen. Use lsblk -a to show all the block devices.
4- Viewing CPU information
lscpu shows all the CPU information on screen.
5- Viewing PCI information
All the network adapter cards, USB cards, Graphics cards are termed as PCIs. To view their information use lspci .
lspci -v will give detailed information regarding PCI cards.
lspci -t will show them in tree format.
6- Viewing USB information
To view information regarding all USB controllers & devices connected to them, we use lsusb
7- Viewing SCSI information
To view SCSI information type lsscsi. lsscsi -s will also show the size of partition.
8- Viewing file system information
$ fdisk -l
Using fdisk -l will show information regarding the file system. Although main function of fdisk utility is to modify a file system, you can create new partitions, delete old ones ( more on that in my future tutorial).
Also i value your valuable feedback, so please leave your suggestions, commentss or queries down below in the comment box.