Did You Know?
Ask a Question

We are pleased to announce the Launch of our New Section "TecMint Ask"

Install Htop (Linux Process Monitoring) for RHEL, CentOS & Fedora

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

In our earlier series of system monitoring article where we explained about Iotop (Monitor Linux Disk I/O) tool, now today we are so exciting to install another system process monitoring tool called Htop on our CentOS 6.3 box to see how it works. It should work on RedHat/Fedora as well. I had heard that htop is replacement of Unix/Linux Top command. I have installed it one of our box and became fond of it. You too can try it out and share your experience with us through comment.  Start installing htop and play with it.

Htop Linux Process Monitoring

Htop Linux Process Monitoring

What is Htop?

Htop is an interactive and real time process monitoring application for Linux. It shows complete list of processes running and easy to use for normal tasks. We can interact with mouse those who love to play with mouse. You can scroll vertically to view the full process list, and scroll horizontally to view the full command line of the process.

Install Htop for RHEL, CentOS & Fedora

Let us install Htop on RHEL 6.3/6.2/6.1/6/5.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 17,16,15,14,13,12 Linux via the yum package manager, the rpmforge package repository must be installed on your system to retrieve and install. To do just install the following RPM for your architecture (32bit or 64bit).

For RHEL, CentOS & Fedora 32-bit OS

## For RHEL 5, CentOS 5 & Fedora ##
# 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 6 and CentOS 6
# 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 64-bit OS

## For RHEL 5, CentOS 5 & Fedora ##
# 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
# 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 RPMforge repository is installed. Now start installation with yum command.

# yum install htop

Now run the htop monitoring tool by executing following command on the terminal.

# htop

Htop is having three sections mainly

  1. Header, where we can see info like CPU, Memory, Swap and also shows tasks, load average and Up-time.
  2. List of processes sorted by CPU utilization.
  3. Last footer shows different options like help, setup, kill, nice , quit etc.
Htop Process Viewer

Htop Process Viewer

Press F2 or S for setup menu > there are four columns i.e Setup, Left Column, Right Column and Available Meters.

Htop Process Viewer Meter

Htop Process Viewer Meter

Type tree or t to display processes tree view.

Htop Tree Process Viewer

Htop Tree Process Viewer

We can refer footer for function keys to use nifty htop application. However, we advise to use character keys or shortcut keys instead of function keys as it may have mapped with some other functions during secure connection.

Htop Shortcut and Function Keys

Some of the shortcut and function keys and its functionality to interact with htop.

Htop Command Shortcuts and Keys

Htop Command Shortcuts and Keys

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Linux Services & Free WordPress Setup

Our post is simply ‘DIY’ aka ‘Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.

7 Responses

  1. ad says:

    Nice,

    i prefered a Visual then in terminal

    Thank You for your trouble

  2. sharad says:

    # rpm -i rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
    error: Failed dependencies:
    rpmlib(FileDigests) <= 4.6.0-1 is needed by rpmforge-release-0.5.3-1.el6.rf.x86_64
    rpmlib(PayloadIsXz) <= 5.2-1 is needed by rpmforge-release-0.5.3-1.el6.rf.x86_64

    getting error after running all command

  3. andrej says:

    there is newer rpmforge package available, the rpmforge-release-0.5.3-1

  4. tinhbk says:

    Thank you for TUT.
    Can you help me uninstall htop?

Leave a Reply

© 2012-2013 All Rights Reserved.