Blog.SSHKit.com — How to Monitor Processes on Linux Using htop. Htop is a command-based utility that monitors real-time system resources or processes on your Linux system. In this tutorial, we will discuss how to install, use and briefly explain the function of each menu on htop.
After htop is installed, please open a terminal or SSH then type the command htop then enter. Then the results of the command will appear as shown below:
The results above can be divided into 3 parts to make them easier to understand.
The top left is the CPU and Memory (RAM) usage information. The top right gives us information about Load Average and Uptime. Other information contains real-time process data with statistics like a priority, CPU consumption, RAM or Memory, etc.
For further discussion, you can see below.
Starting from the top left, there is a CPU line showing the percentage of CPU being used. For Single-core CPU, there will only be one line, but if Multi-Core there will be several lines.
You can see the percentage in percent, the higher the CPU has a lot of loads. Several colors indicate CPU usage, including:
The next line shows the memory usage consumed by the process running on Linux which is indicated by the amount of memory used from the total memory.
There are several color codes on the memory line, including:
Next, we shift to the top-right menu, namely load average. This menu is the average calculation of the process used by each core on the CPU.
The usage average contains three values. The first number is the average CPU usage in one minute (0.07 in the image above), the second number is the average 5 minutes (0.13), and the third is the average CPU usage in 15 minutes (0.09 in the image above).
This menu will show the processes running on Linux.
As the image above shows, several lines are described as follows:
The Footer menu on htop contains commands in the menu that you can click or press each hotkey.
Each menu has its own function. For example, you can use F6 Sort By to sort processes by their CPU or Memory (RAM) usage.
Or you can use F3 Search to search for a specific process.
In short, htop is a command line that you can use to monitor processes running on your Linux. This is similar to the Task Manager in Windows. You can use htop to search for processes that might be causing your system to slow down.
Blog.SSHKit.com — How to Show Pressed Keys on Screen (Windows). For those of you may need to…
How to Restore Classic Context Menu in Windows 11. As we know that in Windows 11…
Blog.SSHKit.com — How to Make Any App Transparent in Windows. Windows 10 or 11 has several new…
Blog.SSHKit.com — How to Create Cool Images With AI (Disco Diffusion). You can make drawing art easily using…
Blog.SSHKit.com — How to Extract Subtitles from Videos (mkv) Online. For those of you who…
Blog.SSHKit.com — How to Get a Free Phone Number from SafeUM. SafeUM is a chat application that has full…