It is similar to the process monitoring command TOP in Linux servers. But in ‘htop’ we have an advantage over normal top command. We can simply interact the ‘htop’ output with mouse. It is very useful for such persons who likes to mange top output via mouse. In this article I am explaining the steps for installing ‘htop’ in RHEL, CentOS, Ubuntu, Debian and Fedora operating systems.
Recently we discussed a similar tool, mytop. Which is similar in look to the basic resource monitoring tool “top.” By using this command, you can monitor the MySQL queries lively. There are a lot of helping switches are included with this tool. For more details refer this, monitor MySQL databases using mytop.
Here CryBit goes with HTOP. The installation is quite simple. This can be done by the command yum and or apt-get. Here is the steps to install ‘htop’ on different OS with different architecture.
Download and install rpm
For RHEL 5, CentOS 5 and Fedora – 32bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm # rpm -ihv rpmforge-release*.rf.i386.rpm
For RHEL 5, CentOS 5 and Fedora – 64bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm # rpm -ihv rpmforge-release*.rf.x86_64.rpm
For RHEL 6 and CentOS 6 – 32bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm # rpm -ihv rpmforge-release*.rf.i686.rpm
For RHEL 6 and CentOS 6 – 64bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # rpm -ihv rpmforge-release*.rf.x86_64.rpm
Once the rpm repository is installed, you can start the real installation using yum.
# yum install htop
htop installation on Ubuntu and debian servers.
You can use the command apt-get to install htop on Ubuntu and Debian servers.
# sudo apt-get install htop
Simply, use the command ‘htop’ to view the processes on the server and manage it simply.
Here is one sample output of ‘htop’ command.
That’s it. 🙂