Htop is an interactive process viewer, a system-monitoring tool for Linux/Unix system. It is an optimized version of Linux top command. Using Htop you can find better results. Htop also supports mouse events to select any process with the mouse. Htop provides a more user-friendly and readable view of CPU, Memory, Load uses on the head.
Htop 2.0 is available with cross-platform features. Now, this release includes code supporting Linux, FreeBSD, OpenBSD and Mac OS X.
Htop is available under default package repositories. Use one of the following commands to install Htop on your system.
Using Package Manager
$ sudo apt install htop
# For Debian Based Systems$ sudo yum install htop # For RedHat Based Systems
If failed to installed with package repository, Download the source code of Htop and compile it on your system.
Using Source Code
$ wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz $ tar xzf htop-2.0.2.tar.gz $ cd htop-2.0.2 $ ./configure $ sudo make && sudo make install
Htop installation has been completed. Now just type htop on the terminal and watch the results. Press Q or F10 to exit from htop command. The bottom line will show you the commands to set up the display, search, sort, increase/decrease the nice value, kill process etc.
Use the following shortcuts keys to change the view.
- F2 => Setup
- F3 or / => Incremental name search
- F4 or \ => Incremental name filter
- F5 or t => Tree view
- F6 + – => Exapand/collaps tree
- F7 => Decrease nice value
- F8 => Increase nice value
- F9 => Kill selected process
- F10 => Exit from Htop command
- P => Sort by CPU
- M => Sort by Memory
- T => Sort by time