TranslateProject/sources/tech/20170515 Commands to check System & Hardware Information.md

3.4 KiB

Commands to check System & Hardware Information

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

uname command

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

$ lshw

lshw command

Using lshw will show you all the Hardware information on your screen.

3- Viewing Block Devices(Hard disks, Flash drives) information

$ lsblk

lsblk command

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

lscpu command

lscpu shows all the CPU information on screen.

5- Viewing PCI information

$ lspci

lspci command

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

$ lsusb

lsusb command

To view information regarding all USB controllers & devices connected to them, we use lsusb

7- Viewing SCSI information

$ lssci

lssci

To view SCSI information type lsscsi. lsscsi -s will also show the size of partition.

8- Viewing file system information

$ fdisk -l

fdisk command

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).

That's it for now my fellow Linux-fanatics . You are advised to check out my other posts regarding Linux commands **HERE & ** another one **HERE **


via: http://linuxtechlab.com/commands-system-hardware-info/

作者:Shusain 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出