Basic Linux Commands to Check Hardware and System Information
Once the Linux kernel initializes, it enumerates all hardware components. There are plenty of commands to check information about the hardware of a Linux system. Some commands report only specific hardware components like CPU or memory while the rest cover multiple hardware units.
1. Printing Machine Hardware Name (uname –m uname –a)
Using the -m switch with the uname command prints the hardware name of our machine. If we want the uname command to print all the information mentioned above, we can use the command with all the switches.
$ uname –m
$ uname -a
2. lscpu
The lscpu command reports information about the cpu and processing units. It does not have any further options or functionality.
$ lscpu
lshw –List Hardware
A general purpose utility, that reports detailed and brief information about multiple different hardware units such as cpu, memory, disk, usb controllers, network adapters etc. Lshw extracts the…