How to Install htop on CentOS 8

If you are looking to monitor your system interactively, then the htop command should be one of your best options. An improvement of its predecessor top command, htop is an interactive process viewer and system monitor that displays resource-usage metrics in color and allows you to easily keep tabs on your system’s performance.

It displays information about CPU & RAM utilization, tasks being carried out, load average and uptime. Additionally, htop displays a list of all the running processes and can also display these processes in a tree-like format.

Advantages of htop over top include

  1. Colored output resource usage statistics.
  2. The ability to end or kill processes without typing their PIDs.
  3. Htop allows mouse usage, unlike top which doesn’t support it.
  4. Better performance than top command.

Let’s now jump in and see how to install this handy feature.

Install htop on CentOS 8

By default, htop comes pre-installed on CentOS8. However, if by any chance the tool is missing on your system, installation is an easy 3 step process.

1. The first step in the installation of the Htop tool is to enable the EPEL repository. To do so, run:

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

After the installation of the EPEL repository, update the system.

# dnf update

2. To install htop tool, simply run the command:

# dnf install htop
Install htop in CentOS 8
Install htop in CentOS 8

After the installation is complete, you can find more information about htop by running the command.

# dnf info htop
Get htop Info
Get htop Info

3. To launch htop, simply run the command.

# htop
htop - interactive system-monitor process-viewer and process-manager
htop – interactive system-monitor process-viewer and process-manager

Additionally, you can pass some arguments to the command. For example, to list the processes of a user. let’s say tecmint run the command.

# htop -u tecmint
htop List User Processes
htop List User Processes

To get help with the command usage, simply run.

# htop --help
Get htop Help
Get htop Help

Alternatively, you can view the man pages by running:

# man htop 
Conclusion

In this article, you learned how to install htop on CentOS 8 and how to use the command to retrieve system statistics.

If you read this far, tweet to the author to show them you care. Tweet a thanks
James Kiarie
This is James, a certified Linux administrator and a tech enthusiast who loves keeping in touch with emerging trends in the tech world. When I'm not running commands on the terminal, I'm taking listening to some cool music. taking a casual stroll or watching a nice movie.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

2 thoughts on “How to Install htop on CentOS 8”

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.