Basic Linux Commands to Check Hardware and System Information

Yagmur Sahin
Technology Hits
Published in
5 min readDec 26, 2020

--

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.

Photo by Florian Krumm on Unsplash

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

photo by author

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…

--

--

Yagmur Sahin
Technology Hits

London 📍 Lawyer | Privacy & Data Protection Professional | Philosophy-Psychology-Tech Linkedin: https://www.linkedin.com/in/data-privacy-yagmursahin/