Htop is a pretty nice fork of top, which almost makes you forget of using a GUI for simple monitoring tasks. It has pretty nice colours all around your terminal and allows you to have a nice idea of what’s-what, at a glimpse.
Run these commands for RHEL/CentOS and Fedora Linux servers
yum groupinstall "Development Tools"
yum install ncurses ncurses-devel
wget http://hisham.hm/htop/releases/2.0.0/htop-2.0.0.tar.gz
tar xvfvz htop-2.0.0.tar.gz
cd htop-2.0.0
./configure
make
make install
Or, run these commands for Debian and Ubuntu Linux servers
sudo apt-get install build-essential
sudo apt-get install libncurses5-dev libncursesw5-dev
wget http://hisham.hm/htop/releases/2.0.0/htop-2.0.0.tar.gz
tar xvfvz htop-2.0.0.tar.gz
cd htop-2.0.0
./configure
make
make install
If you succesfully followed our instructions, you’ll be able to use htop just by running:
htop
As simple as that
Why we use the source files directly? Well, most tutorials on the internet, make use of EPEL repository. EPEL repo, has been discontinued, so although installing the repo and then running a simple sudo yum or sudo apt-get command to install htop, there is no guarantee that the version you’ve installed will be upgradable to newer versions.