Install Htop | an interactive process viewer for Linux


Is a very interactive tui based tool written in C program(using the curses library) by Hisham Muhammad with a group of code contributors. Basically ,htop was written to replace the standard top tool in unix/linux operating system. Htop provides a full list of processes running, instead of the top resource-consuming processes. Htop uses color and gives visual information about processor, swap and memory status

Various Htop features over the standard top command.

  • when trying to find minor memory leaks in applications. Compared to top, it provides a more convenient, cursor-controlled interface for killing processes.
  • In ‘htop’ you can scroll the list vertically and horizontally to see all processes and complete command lines.
  • In ‘top’ you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident).
  • ‘htop’ starts faster (‘top’ seems to collect data for a while before displaying anything).
  • In ‘htop’ you don’t need to type the process number to kill a process, in ‘top’ you do.
  • In ‘htop’ you don’t need to type the process number or the priority value to renice a process, in ‘top’ you do.
  • ‘htop’ supports mouse operation, ‘top’ doesn’t
  • ‘top’ is older, hence, more used and tested.
  • Configuring/monitoring using CPU affinity
  • Tree view, SMP, and other features available
  • An impressive setup — htop running on a machine with 128 cores and 1TB of RAM

Installing htop

RHEL 7 & CentOS 7

# yum install epel-release -y

Once you have installed EPEL repo, you can then install htop using yum.

# yum install htop
# htop


The installation process for Debian.

Log in with your root user log in credentials.

# apt-get install htop
# htop

This will install the htop binary in /usr/local/bin/htop .

Run the command htop from shell to monitor the system process.

Some useful htop tips :


To set the delay time (in seconds before starting the command) : htop -d <your refesh limit in seconds)

To list only the specific user in the system try -u for exampe : htop -u apache (will list only the process run by the apache user)

Find out the htop help menu by pressing the F1 key after executing the htop command from the command line for more help refer ‘ man help ‘. Cheers!



External links :


Htop Home page :