How to install HTOP in Linux
This interactive system monitor and process manager allows you to view and manage your processes. It is a replacement for the Unix program top. It shows information about the processes of the system, memory usage, and average load, etc. Its Process Monitor is an interactive process viewer that runs across a variety of platforms. HTOP is similar to TOP, but it is considerably improved over TOP.
In this guide, you will learn how to install HTOP on Linux. Linux distributions used here are CentOS, RHEL, Ubuntu, and Debian.
So let’s begin,
Step 1: Set up a VPSie cloud server
Start by logging into your VPSie account Make a new server, There are several Linux distributions available on vpsie and after creating one use the credentials that we emailed you to connect to your Cloud Server via SSH.
Install HTOP in Ubuntu / Debian
It is not necessary to install any other repositories. Htop packages are included with the default Ubuntu/Debian repository. you can install them by running this command.
# sudo apt install htop
Verify the installation,
# apt show htop
Output,
# apt show htop Package: htop Version: 2.2.0-2build1 Priority: optional Section: utils Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Daniel Lange <[email protected]> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 225 kB Depends: libc6 (>= 2.15), libncursesw6 (>= 6), libtinfo6 (>= 6) Suggests: lsof, strace Homepage: https://hisham.hm/htop/ Task: server, cloud-image, lubuntu-desktop Download-Size: 80.5 kB .........
Install HTOP in CentOS / RHEL
CentOS / RHEL Htop packages can be found in the EPEL repositories, which must be installed on our system if it is not already. To do this, type the following command, which installs EPEL on our system.
# yum install epel-release
We can now install it with yum,
# yum install htop
Install HTOP using the source package
First, Check the latest htop repository from Github, then run configure and compile a script to install given below.
Complete the following commands with your latest Htop version,
$ wget -O htop-3.1.1.tar.gz https://github.com/htop-dev/htop/archive/refs/tags/3.1.1.tar.gz
$ tar xvfvz htop-3.1.1.tar.gz
$ cd htop-3.1.1/
$ ./configure
$ make
$ sudo make install
Step 2: Using Htop
Htop is having three sections mainly,
- Header, which shows CPU, Memory, Swap, and tasks, load average, and uptime.
- List of processes sorted by CPU utilization.
- Footer includes options such as help, setup, filter tree kill, nice, quit, etc.
Let’s start using it,
You can use htop by opening a terminal and run the following command,
# htop
For more information on the options available with the htop command, you can run the help command.
# htop --help
We’ve finished our tutorial on installing HTOP on Linux. Let’s hope you found the information helpful.