In this guide, we will discover: How to Check CPU Usage in Ubuntu – Easy Beginners Guide 2023
So, let’s begin!
Do you want to check the CPU usage of your Ubuntu Linux-based computer? Go through this detailed guide, as it illustrates various ways to achieve that.
By Oluwaseun Bamisile | Updated April 13, 2023 | 10 minutes read
In this comprehensive article, you will learn to show processor usage in Ubuntu through the System Monitor program. This guide will also teach you several commands to check CPU usage via the terminal.
These commands include the top command, htop command, and iostat command.
After all that, you will find an FAQ section toward the concluding part of this guide. That section will offer answers to a few frequently asked questions related to this guide’s topic.
Before we proceed, it is important to note that the steps featured in this article are based on the Ubuntu 22.04 LTS OS. Hence, the steps might differ slightly on other versions of the Ubuntu Linux-based OS.
Show Processor Usage in Ubuntu Via System Monitor

The Ubuntu Linux-based operating system comes with a System Monitor program that analyses resources and apps on your computer. Thus, through the System Monitor program, you can check the processor usage of your Ubuntu PC.
The following procedures listed below will demonstrate how to do that.
- Open the app menu in Ubuntu by clicking the Show Applications button on the Ubuntu dock. Then, type “system monitor” in the search field and select the System Monitor program for the search result.

- Following that, switch to the Resources tab on the System Monitor program.

- On the Resources page, you will see live usage info of your computer’s CPU.

View CPU Usage in Ubuntu Through the Terminal

Another way to check the processor usage of your Ubuntu Linux-based computer is through the terminal. In fact, there is a couple of commands that allow you to check the CPU usage through the Ubuntu terminal.
However, we will focus on three of those commands in this section. These commands include the top command, htop command, and iostat command.
So, the following sub-sections will demonstrate how to use those commands to view the CPU usage in Ubuntu.
Check CPU Usage Using Top Command
The top command is a handy command-line tool that monitors all running processes on your Ubuntu computer in real time. It also displays information about the readout of users, CPU usage, and memory usage in real time.
Moreover, the top command updates the data every 5 seconds by default. That being said, the subsequent procedures will demonstrate how to see the CPU usage of your Ubuntu PC using the top command.
- Right-click any free spot on your Ubuntu desktop, then pick Open in Terminal from the context menu. Alternatively, press the Ctrl + Alt + T keys simultaneously to open the terminal in Ubuntu.

- Afterward, input the command below in the Ubuntu terminal and press the enter key on your keyboard.
top

- Consequently, the command will display the resource usage of your Ubuntu computer, including the CPU usage, in real-time. The percentage of CPU usage should be displayed in the “%CPU” column.
To exit the top command, press the “q” key on your keyboard.

Show CPU Usage Using Htop Command
The htop command is another command-line tool that allows you to view and manage system processes. Basically, the command-line tool displays a list of running processes and the amount of CPU resources they are using in real time.
Similar to the top command discussed above, this command refreshes data every couple of seconds. That being said, follow the steps below to learn how to show the CPU usage in Ubuntu using the htop command.
- Click the Show Applications button on the Ubuntu dock to open the application menu. Then, input “terminal” in the search field and select the Terminal program from the search result.
Alternatively, use the Ctrl + Alt + T keyboard shortcut to open the terminal in Ubuntu.

- Now, run the command below to install the command-line tool. However, before the command executes, you will be prompted to input your password – do so and press the enter key.
sudo snap install htop
You should know that when typing your password in the Ubuntu terminal, characters won’t be visible.

- Consequently, the htop command-line tool should begin to install.

- After the command-line tool has been installed, execute the command below to display the CPU usage. Thus, you should see the percentage of CPU usage in the “CPU%” column – see the second screenshot below.
htop

You can exit the htop command-line environment by pressing “q” on your keyboard.

Discover CPU Usage Using Iostat Command
The last command we will discuss in this section is the iostat command. This command is part of the sysstat package that enables users to monitor system performance in Ubuntu, including CPU usage.
Thus, the following steps and screenshot images will demonstrate how to use the command to view the CPU usage in Ubuntu.
- Launch the terminal in Ubuntu by right-clicking any free area on the Ubuntu desktop and selecting Open in Terminal from the context menu.

- When the terminal opens, type the subsequent command and press the enter key to install the sysstat package. However, before the installation begins, you will be prompted to input your computer’s password – do that and press the enter key.
sudo apt install sysstat
You should know that characters won’t be visible when typing the password in the Ubuntu terminal.

- Subsequently, the sysstat package should begin to install.

- After installing the sysstat package, execute the command below to see the CPU usage on your Ubuntu computer. Thus, you should see the average usage of your computer’s CPU since the last boot.
iostat

Frequently Asked Questions

The full meaning of CPU is Central Processing Unit.
To check the processor usage in Ubuntu through the system monitor, follow the steps below.
a) Open the app menu in Ubuntu by clicking the Show Applications button on the Ubuntu dock.
b) Then, type “system monitor” in the search field and select the System Monitor program for the search result.
c) Following that, switch to the Resources tab on the System Monitor program.
d) On the Resources page, you will see a live usage of your computer’s CPU.
You can use the “top” command to display the processor usage in the Linux operating system.
The amount of work a CPU puts in to complete the given tasks or process is known as CPU usage. A computer’s performance might be negatively affected by high CPU usage, so monitoring this metric is important.
Some of the effects of high CPU usage in Ubuntu include longer loading times, sluggish performance, and unexpected crashes.
My Final Thoughts

CPU usage is an important metric to monitor in any operating system, including the Ubuntu OS. Knowing how much CPU is being used by your computer and individual processes can help you identify performance bottlenecks.
It can also help you troubleshoot issues and optimize system performance. Fortunately, this guide discussed multiple methods to know the CPU usage on your Ubuntu Linux-based computer.
To be specific, we learned how to accomplish the task through the System Monitor program in the Ubuntu GUI. This guide also taught us how to check the CPU usage in Ubuntu with three different commands in the terminal.
Hopefully, you enjoyed reading this guide and found it helpful. If you did, we would love to know what you think – share your opinions with us at Itechguides Community Forum.
However, if you aren’t satisfied with this guide for whatever reason, please don’t hesitate to post your complaints or feedback at Itechguides Community Forum. Our forum staff and some community members will be delighted to respond to you as quickly as possible.
Finally, you can visit our Linux how-to page to find other helpful Linux how-to guides.