Htop is an excellent tool for anyone who wants a closer look at what’s happening inside their computer. It’s a text-based application, so it’s easy to use and doesn’t require fancy graphics. And best of all, it’s completely free and open-source! With Htop, you can see all the processes running on your system and other information like memory usage. You can also customize the UI to change colors or add different widgets. So if you’re interested in learning more about your computer’s work or want a visual way to see what’s going on, check out Htop!
The following tutorial will teach you how to install Htop Interactive Process Viewer on Rocky Linux 9 on a workstation desktop or headless server using the command line terminal.
Table of Contents
Update Rocky Linux
First, before proceeding, update your system to ensure no conflicts occur during the installation.
sudo dnf upgrade --refresh
Install Htop Interactive Viewer
By default, Rocky Linux does not have Htop available from its appstream, so that you will need the EPEL repository first.
Enable EPEL Repository
First, enable the CRB repository.
sudo dnf config-manager --set-enabled crb
Next, install EPEL using the following (dnf) terminal command.
sudo dnf install \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
To proceed with the installation, use the following command.
sudo dnf install htop -y
Confirm the installation and version build using the htop –version command.
[joshua@rocky-linux-9 ~]$ htop --version htop 3.2.1
How to use Htop – Terminal Commands
As the name suggests, use the following command to bring up Htop in your terminal.
This is a standard overview of your system, which would suit most users who need to check quickly on the system stats.
Further options can be added, such as some standard parameters below.
|Specify the update rate in 1/10 seconds|
|Start without colors|
|Show quick help|
|Show only processes of the specified user|
|Sort by a specific column. A list of the permitted column names can be htop -s help output with ” “.|
|Show Htop version|
One of the most common parameters is delaying the update frequency of Htop, as many have the application constantly running to monitor system or network performances.
htop -d 10
As mentioned above, this has added a ten-second delay, but you can specify anything you want in seconds.
Htop Keyboard Shorts
Below is a list of the most commonly used shortcuts.
|← , ↑ , → , ↓||Scroll through the process list|
|⇧ + U||Remove all tags|
|. or ,||Incremental search for the PID|
|F1 , ? , H||Show help|
|U||Show processes of a user|
|F2 , ⇧ + S||Open setup and change settings|
|⇧ + H||Show/hide user threads|
|F3, ⇧ + /||Incremental process name search|
|⇧ + K||Show/hide kernel threads|
|F4, \||Filter by name|
|⇧ + F.||Pin the cursor to a process|
|F5 , T||Activate / deactivate tree view|
|+ , –||Expand/collapse the tree|
|F6, >||Select the column to sort|
|⇧ + P||Sort processes by CPU usage|
|F7||Decrease Nice value|
|⇧ + M||Sort processes by memory usage|
|F8||Increase Nice value|
|⇧ + T||Sort processes by the time|
|F9, K||End the process or processes of a day|
|L||Open files with lsof open|
|F10 , Q , Ctrl + C||break up|
|S||System calls to |
|Space bar||Tag process|
|⇧ + L||Track library |
|I||I / O control|
How to Remove (Uninstall) Htop
To remove Htop from your system is straightforward. Use the following command.
sudo dnf autoremove htop -y
It is advised to keep EPEL installed, as this repository provides many alternative packages you may require in the future.
Comments and Conclusion
If you are looking for a no-frills, easy-to-use process monitor that can quickly show you the processes and applications consuming your system resources, Htop is an excellent option. While similar software options are available, such as Glances System Monitor, Htop has been one of the most popular Linux distros for local monitoring for many years.