Install htop command to monitor process of linux system

htop is a free ncurses-based real time process monitoring tool for Linux similar to top command. But htop allows you to scroll vertically and horizontally so that we can see all the running processes and full command lines on the system. htop uses ncurses to provide a “text-graphical” interface. htop allows mouse operation and output shows in color. top command is installed most of the Linux system by default and it is the most frequently used, old and matured command in Linux and everybody is aware of it. In this post, we are going to see the installation and how effectively we can use a htop tool in Linux.


1. Running instance
2. internet access to download htop package
3. root or sudo access

Installing htop on Debian/Ubuntu system

$ sudo apt update && sudo apt upgrade
$ $ sudo apt install htop

Installing htop on CentOS/RedHat Linux system

Enable EPEL Repository for RHEL and CentOS Linux

RHEL/CentOS 7:

$ sudo yum install
$ sudo yum update
$ sudo yum repolist

RHEL/CentOS 8:

$ sudo dnf install
$ sudo dnf update
$ sudo dnf repolist
How to use htop command
htop [options]
Also Read: top command in Linux with examples.
Once installed, just type htop from command prompt to lunch it.
$ sudo htop
htop is having three sections:
1. In the Header section where information shows like CPU, Memory, SWAP, Tasks, Load average & Uptime
2. List of processes sorted by CPU
3. Footer section shows F1[Help], F2[Setup], F3[Search], F4[Filter], F5[Sorted], F6[Collap], F7[Nice], F8[Nice], F9[Kill] F10[Quit]
To see the tree view by default while running htop command 
$ htop -t
$ htop –tree
Setup htop output
Use F2 key to customize htop output.

To see the process owned by user teclues

$ sudo htop teclues

$ sudo htop –user=teclues

To Shows only the given PIDs.

$ sudo htop -p 2834,1852
Get help about htop
$ sudo htop –help
$ sudo man htop

Conclusion: In this tutorial, we have seen htop installation and to monitor process of Linux system. Big thanks for reading all the way to the end. Please share it with Your Friends & Help Someone… and also Like Our Facebook Page. Let me hear your thoughts in the comments below!

Leave a Comment