ubuntu cpu info

Ubuntu supports numerous tools for checking the CPU architecture info from built-in ones like lscpu to third-party tools like hardinfo. If you’re looking to monitor the CPU stats in real time instead, we’ll cover the best utilities for that purpose as well.

Use lscpu

lscpu is the defacto default command for getting CPU info on Ubuntu. It gathers the info from sources like sysfs and /proc/cpuinfo and displays everything you could ask for. This includes the model name, threads, cores, sockets, frequency, cache info, and so on.


Check /proc/cpuinfo

The /proc/ directory contains files that detail the current state of the kernel and running processes. Specifically, the /proc/cpuinfo file is where utilities like lscpu get the majority of CPU info from. So, needless to say, you can directly read this file to display detailed info for each thread.

cat /proc/cpuinfo

Use dmidecode

dmidecode is used to get hardware info by translating the SMBIOS into human-readable form. It displays some additional info compared to other tools such as the processor ID, current frequency, voltage, etc. Even when there’s overlap with the other tools, dmidecode’s output tends to be easier to understand.

sudo dmidecode --type processor

Use Third-Party Tools

There are plenty of great third-party system monitors like cpuid or hwinfo. But I’ve already covered multiple CLI tools, I’ll recommend hardinfo instead in this section. It’s a lightweight app that displays hardware and OS info in a GTK+ window. 

sudo apt install hardinfo

After installing it, you can search ‘System Profiler’ in the Applications menu, or launch it from the terminal by entering


As stated, hardinfo can display info on most aspects of your system from the OS, kernel, and users to hardware components. As we’re looking for CPU data specifically, go to the Devices > Processor section. You’ll find detailed info on each thread there.

Monitoring CPU Stats

If you’re trying to monitor your system’s CPU usage and temperature stats in real-time, you’ll need some different tools.

The built-in System Monitor is a good option if you want a simple graphical app. It’ll let you monitor the overall CPU usage, utilization per thread, as well as usage % per process.

This is generally enough, but if you want in-depth CPU data or temperature stats, you’ll need a more advanced utility like Glances. It’s a feature-rich program that allows you remotely monitor a machine via a web or CLI interface.

The main downside to Glances is that it’s not lightweight. If that’s a problem, you can look into other options like htop (for CPU usage stats) or lm_sensors with any frontend (for CPU temperature readings).

Anup Thapa

Senior Writer

Anup Thapa is a Linux enthusiast with an extensive background in computer hardware and networking. His goal is to effectively communicate technical concepts in a simplified form understandable by new Linux users. To this end, he mainly writes beginner-friendly tutorials and troubleshooting guides. Outside of work, he enjoys reading up on a range of topics, traveling, working out, and MOBAs.