• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Htop 2.0 for Linux Process Monitoring

{{postValue.id}}

Htop Monitoring tool in Linux

Htop is the most popular interactive monitoring tool for Linux/Unix like systems. More than one process can be killed using Htop by inserting their PIDs. To print set of environment variables for process press e.
htop provides a full list of processes running and it uses color and gives visual information about processor, swap and memory status.

Method: 1

To install Htop using Binary packages

To fetch and install the htop package
The below commands is used to fetch and install the htop packages.

On Fedora
dnf install htop [On Fedora 22+ releases]

On Debian and Ubuntu
sudo apt-get install htop

On CentOS

[root@linuxhelp ~]# yum install htop
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
...
...
Installed:
  htop.x86_64 0:1.0.1-2.el6                                                     

Complete!

Now, the installation process is completed.

Method: 2

Install Htop from source packages

If the htop package is not available for your system... you can download the htop source package by using the wget command.

[root@linuxhelp Desktop]# wget http://hisham.hm/htop/releases/2.0.0/htop-2.0.0.tar.gz
--2016-03-03 05:14:34--  http://hisham.hm/htop/releases/2.0.0/htop-2.0.0.tar.gz
Resolving hisham.hm... 69.163.225.224
Connecting to hisham.hm|69.163.225.224|:80... connected.
...
...
Saving to: “ htop-2.0.0.tar.gz” 

100%[======================================> ] 473,765      206K/s   in 2.2s    

2016-03-03 05:14:37 (206 KB/s) - “ htop-2.0.0.tar.gz”  saved [473765/473765]


Now extract the downloaded source package using the following command.

[root@linuxhelp Desktop]# tar -xvf htop-2.0.0.tar.gz
drwxr-xr-x 1000/100          0 2016-02-11 02:18 htop-2.0.0/
-rw-r--r-- 1000/100        617 2016-02-02 20:29 htop-2.0.0/ColumnsPanel.h
-rw-r--r-- 1000/100       5720 2016-02-02 20:43 htop-2.0.0/config.h.in
...
...
...
-rw-r--r-- 1000/100       2363 2015-10-05 19:52 htop-2.0.0/htop.desktop
-rw-r--r-- 1000/100        594 2016-02-02 20:29 htop-2.0.0/UsersTable.h
-rw-r--r-- 1000/100       2637 2016-02-02 20:28 htop-2.0.0/Affinity.c

[root@linuxhelp Desktop]# cd htop-2.0.0
[root@linuxhelp htop-2.0.0]#

To run the configure and make script to install and compile htop

[root@linuxhelp htop-2.0.0]# ./configure 
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
...
...
...
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[root@linuxhelp htop-2.0.0]# make
make  all-am
make[1]: Entering directory `/home/user1/Desktop/htop-2.0.0' 
gcc -DHAVE_CONFIG_H -I.  -DNDEBUG  -pedantic -Wall -Wextra -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=" /usr/local/etc"  -I" ./linux"  -rdynamic  -g -O2 -MT htop-AvailableMetersPanel.o -MD -MP -MF .deps/htop-AvailableMetersPanel.Tpo -c -o htop-AvailableMetersPanel.o `test -f ' AvailableMetersPanel.c'  || echo ' ./' `AvailableMetersPanel.c
...
...
linux/htop-Platform.o linux/htop-IOPriorityPanel.o linux/htop-IOPriority.o linux/htop-LinuxProcess.o linux/htop-LinuxProcessList.o linux/htop-LinuxCRT.o linux/htop-Battery.o  -lncursesw -lm
make[1]: Leaving directory `/home/user1/Desktop/htop-2.0.0' 
[root@linuxhelp htop-2.0.0]# make install
make  install-am
make[1]: Entering directory `/home/user1/Desktop/htop-2.0.0' 
make[2]: Entering directory `/home/user1/Desktop/htop-2.0.0' 
 /bin/mkdir -p ' /usr/local/bin' 
  /bin/sh ./libtool   --mode=install /usr/bin/install -c htop ' /usr/local/bin' 
libtool: install: /usr/bin/install -c htop /usr/local/bin/htop
 /bin/mkdir -p ' /usr/local/share/applications' 
 /usr/bin/install -c -m 644 htop.desktop ' /usr/local/share/applications' 
 /bin/mkdir -p ' /usr/local/share/man/man1' 
 /usr/bin/install -c -m 644 htop.1 ' /usr/local/share/man/man1' 
 /bin/mkdir -p ' /usr/local/share/pixmaps' 
 /usr/bin/install -c -m 644 htop.png ' /usr/local/share/pixmaps' 
make[2]: Leaving directory `/home/user1/Desktop/htop-2.0.0' 
make[1]: Leaving directory `/home/user1/Desktop/htop-2.0.0' 


Now, the installation is completed from source package.

To run htop monitoring tool

Execute the following command to run the htop monitoring tool.

[root@linuxhelp htop-2.0.0]# htop

http2

Press S or F2 for set menu

h2

Type tree or t to display processes tree view

h3

Htop Shortcut and Function Keys

4

Tags:
mason
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What option is used for sorting?

A

">" is used for sorting

Q

What does Htop show?

A

htop is an interactive system-monitor process-viewer and process-manager. It is designed as an alternative to the Unix program top. It shows a frequently updated list of the processes running on a computer, normally ordered by the amount of CPU usage.

Q

What is the load average in Htop?

A

Load average: The system load is a measure of the amount of computational work that a computer system performs. The load average represents the average system load over a period of time. 1.0 on a single core cpu represents 100% utilization.

Q

What is virt in Htop?

A

VIRT stands for the virtual size of a process, which is the sum of memory it is actually using, memory it has mapped into itself (for instance the video card's RAM for the X server), files on disk that have been mapped into it (most notably shared libraries), and memory shared with other processes.

Q

What is Htop command Linux?

A

Htop is a free (GPL) ncurses-based process viewer for Linux. It is similar to top but allows you to scroll vertically and horizontally, so you can see all the processes running on the system, along with their full command lines.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.