How to use htop to monitor system processes in Ubuntu 18.04

Most people are familiar with using the task manager in Windows. This is a function that is mainly used to view current processes. In the same way, Ubuntu also provides us with a utility to monitor the system process and determine how much space each process takes and what process is currently running on the CPU, etc. This function is known as the htop utility in Ubuntu. In this article, we will tell you how this function works and how you can track system processes through it.

Using htop to monitor processes in Ubuntu

Launch the terminal by clicking Ctrl + T or by clicking on the terminal icon displayed on the taskbar or search Terminal typing the terminal in the search box and pressing enter. The newly opened terminal window is shown below:

Ubuntu terminal is open

First you need to install the htop utility. To do this, enter the command sudo apt-get install htop and press enter.

Install the htop utility

As soon as you press enter, he will ask you to enter a password. Just enter your system password and press Enter. Your installation will begin.

Enter the password when sudo asks for it

Once your installation is successfully completed, you will see the following messages:

htop installation was successful

Now type htop in the terminal and press enter. As soon as you press enter, your terminal will turn into an htop window, and all system processes will be displayed on it, as shown below:

htop monitoring tool in action

There are many useful interactive commands in htop. For example. You can select a process using the up and down arrow keys on the keyboard, and then end the process with the F9 key. The sort order of the columns can be changed with the F6 key.

Advertising

A complete list of all options can be found on the htop command man page. Here,

Conclusion

Using the htop utility, you can visualize all the processes of your system, their CPU cycles, memory consumption, time intervals, resources, etc. Thus, you can monitor the resources used by all processes of the system.

How to use htop to monitor system processes in Ubuntu 18.04

Sidebar