HTOP command is used to monitor our Linux system’s resources. It provides information related to system processes, system memory, Load average, etc. It is a cross-platform, interactive process viewer. It is quite similar to the ‘top’ command, which comes pre-installed with almost all Linux distributions. But the HTOP command is quite an improvement over the TOP command.
In this tutorial, we will learn to install the HTOP command on Linux.
Recommended Read: How to setup PasswordLess SSH in Linux? Also Read: Create your own WordPress Website from Scratch : Step by Step
Install HTOP in Ubuntu / Debian
Htop packages for Ubuntu are available on the default Ubuntu repositories, so we are not required to install any other repositories. Simply run the following command to install it,
Install HTOP in CentOS / RHEL
Htop packages for CentOS / RHEL are available on the EPEL repositories, so we must install the EPEL repos on our CentOS systems, if not installed. Use the following command to do so,
# yum install epel-release
Now, we can execute the yum command to install it,
Install HTOP using the source package
Usually, the HTOP versions available on Ubuntu & CentOS, etc are quite the latest but there might be some delay between when new packages are available on the official channel vs when they are available on system repositories. So we can also use the source packages to download & install the latest HTOP version.
Download the latest package (currently 3.0.3) with the following command,
Next, untar the package,
Next, we will configure, compile & install the package with the following commands,
That will install HTOP on our system.
To use htop, simply open the terminal & run,
You can also run the help to check the options that are available with the htop command,
# htop — help
That’s it for this tutorial on how to install HTOP on Linux. Please feel free to send in any questions or queries using the comment box below.
We are giving you exclusive deals to try Linux Servers for free with 100$ credit, check these links to claim your 100$,
Check some Exclusive Deals, HERE.
Also, check out DevOps Book You should read the section.
Originally published at https://linuxtechlab.com on February 15, 2021.