Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Use of htop  (Read 2675 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Use of htop
« on: November 20, 2013, 05:43:59 pm »
You have probably used the 'top' command, which is a simple process monitoring program which runs in command line. However, if you find top a bit boring and like the idea of a more colorful and interesting UI, ‘htop’ might be for you. Here’s a screenshot of htop in action:




Advantages of using htop include:

- Colour meters show you at a glance if CPU load, memory usage etc. is within acceptable levels
- Supports user interaction using the mouse as well as keyboard
- Sort process list by CPU%, MEM%, time running etc., and in ascending or descending order
- Fully customizable according to your needs
- Help menu which lists all possible commands (useful for beginners)


Installation:

Before we can actually install htop, we firstly need to install Repoforge, which will act as a repository from which we can get the files.

For RHEL, CentOS & Fedora (6.x 32-bit):

Quote
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, CentOS & Fedora (6.x 64-bit):

Quote
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 you have installed Repoforge/RPMForge, you can then install htop by simply issuing the following command

Code: [Select]
yum install htop
You can then run htop by simply executing:

Quote
htop



For Debian

The installation process for Debian is even simpler, as it is already available in the repositories.

1). Log in with your root user log in credentials.
2). Type "apt-get install htop".
3). To run, type "htop".