Linux Commands To Collect System and Hardware Information

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-commands-collect-system-hardware-information/
PINTEREST
PINTEREST
INSTAGRAM

Getting information about system and hardware is important part of System Administration job. There are a lot of different tools those provides information about system and hardware. In this post we will look how to get CPU, memory, disk, bus, usb, disk … information simple from a Linux system.

Print Operating System

Linux system administrators generally work different type of Operating systems which are similar to Linux. To get detailed operation system information like Unix, BSD etc. uname command can be used.

Print Operating System

Print Operating System

Print Host name

Host name is used for system to identify and name them. Printing host name can be done in different ways.

OR

Print Host name

Print Host name

Print Architecture

Computer architecture is generally related with CPU running on the system. There are different type of CPU’s used in server hardware like x86, Arm, PowerPC, etc.

In this situation our system is x86 and 64 bit operating system.

Print Kernel Information

Kernel is the core of an operating system. There are different kernel used in Unix like operating systems. Other than Linux, Bsd, Solaris are alternative kernels.

Print Kernel Information

Print Kernel Information

List All Hardware

To get fast and furious way about the all hardware lshw command can be used. This command requires root privileges to probe in detail.

List All Hardware

List All Hardware

List Hardware As Table

Previous output may be seem a bit untidy. Alternative is sorting the output of lshw command.

LEARN MORE  Linux System Activity Reporter (SAR) Command Tutorial With Examples

List Hardware As Table

List Hardware As Table

List Hardware To Html

While working with command line interface bash and related tools are useful. But if we want to get information in HTML form lshw provides html web page output for the list of hardware.

$ sudo lshw  -html > systeminformation.html

List Hardware To Html

List Hardware To Html

Print Memory Information

Print CPU Information

CPU related information is important. The performance and capabilities can be get from CPU information. CPU’s, core, CPU family, CPU cache, threads, supported instruction sets, hypervisor vendor, virtualization type CPU frequency and speed information can be get with the following command.

Print CPU Information

Print CPU Information

Print Block Device/Disk Information

Installed disks can be get with lsblk command. lsblk command will provide information about name , major, minor numbers size, read write status, type and mount point of currently installed disk devices.

Print Block Device/Disk Information

Print Block Device/Disk Information

Print USB Information

USB provides flexible way to connect devices to the computers. To list USB controllers and connected devices to a Linux system following command can be used. Also USB devices manufacturer and memory address ranges can be learned with this command.

Print USB Information

Print USB Information

Print PCI Information

PCI is the main way to connect different type high data rate devices like graphics cards, network adapters, USB ports etc. PCI bus connected devices can be listed with lspci

Print PCI Information

Print PCI Information

From this output we can see that Intel USB controllers are connected to the PCI. QXL graphic controller and Virtio Ethernet controller is also connected from this PCI bus.

LEARN MORE  Linux ss Command Tutorial With Examples

Print Detailed PCI Information

By using previous lspci command with the -v parameter more detailed information about the PCI devices can be get like below.

Print Detailed PCI Information

Print Detailed PCI Information

Print SCSI Information

SCSI is another popular BUS used to connect different type of devices to the Linux systems. SCSI interface devices are pricier than PCI because they are generally used in enterprise server hardware. SCSI information similar to the PCI can be listed with the following command.

Print SATA/Disk Information

Disk device information can be get with the hdparm command like below.

Print SATA/Disk Information

Print SATA/Disk Information

Print File System Information

File system information can be gathered by using fdisk command. Although fdisk  can be used for creating partitions, file systems and other disk related media also provides file system information with the -l parameter.

Print File System Information

Print File System Information

Print BIOS Information

Bios is the first operating system when the computer starts. It is very basic operating system which provides base line for real operating systems like Linux. BIOS provide wealth information about the hardware and itself. These information can be get with the following command.

Print BIOS Information

Print BIOS Information

Print Chassis Information

Chassis is the main board and related part of a system. Enterprise server hardware manufacturers put details into its chassis like serial number, model etc. These information can be get with the following command.

LEARN MORE  Ultimate Pfsense Feature Show and Tutorial

Print Chassis Information

Print Chassis Information

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-commands-collect-system-hardware-information/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

1 Response

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)