How to Install and Use Htop

What is HTOP?

The htop command line tool is very useful for locating what programs are using up more resources than intended. Unlike the top command, htop will provide all of the processes running and not just the top resource abusing ones. Htop provides many filters that you can sort through to show only the information you are looking for. For example if you are running htop and you would like to view the programs using the most RAM, you would hit F6 on your keyboard and select the MEM% filter then hit enter.

How to install HTOP

  1. Log into your server with root access via SSH.
  2. Add the htop repository to your servers repo list.
    rpm -ihv epel-release-7-11.noarch.rpm
  3. Install htop.
    yum install htop
  4. Once the installation is complete you may just run the command below to get started.
  5. htop

    Once you have Htop up and running you should see something similar the image to the right. As you can see in the image to the right HTOP displays how many cores your computer/server has while also including the load on each core. Below your CPU information you can see the RAM being used and the total amount. You can also run the command “man htop” and it will provide you with more options while running this tool.

Stormy Scott
Stormy Scott Content Marketing Writer

Stormy is a Content Marketing Writer at InMotion Hosting. Her content focus is WordPress, web design, and help articles for small businesses.

More Articles by Stormy

Thoughts on “How to Install and Use Htop

  • Hello,

    Any update on where and what package to use now? The CentOS wiki says “RPMForge/RepoForge is a dead project. It is not maintained. DO NOT USE”


Was this article helpful? Let us know!