Htop, the successor of top
top (table of processes), is a simple command on the command line designed for Linux, OS X, FreeBSD, OpenBSD. It is used to monitor the system and get an overview over processes happening inside the computer live.
htop shows how much processing power and memory are being used, as well as other information about the running processes. The information gathered is ordered by CPU usage.
It was developed by Hisham Muhammad around May 2004 but the most stable version of it was released in early 2016. Both
htop are written in C and both of them are used for the same purposes and act as a task manager, hence the question: why do we need two of the same kind?
htop is being constantly updated and tweaked by the developer to give you a better experience.
Comparison between htop and top
The question stated above will find its answer here where we compare htop and top:
htop you can scroll the list vertically and horizontally to see all processes and complete command lines.
top you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident).
htop starts faster (
top seems to collect data for a while before displaying anything).
htop you don't need to type the process number to kill a process, in
top you do.
htop you don't need to type the process number or the priority value to renice a process, in
top you do.
htop supports mouse operation,
top is older, hence, more used and tested.
htop is just like
top, but greatly improved visually and performance wise, including interactivity and the support of mouse operations.
Installing htop on Ubuntu and a quick guide
1. You can either grab the source code from the htop website (See Also section) or you can do it the easy way and install it with apt-get
sudo apt-get install htop
And that's the only step you need to take! Now you can enjoy a greatly improved graph.
htop on your command line to start it up.
2. Move up and down with your arrow keys to select a process and with htop you have the ability to kill your processes with the F9 key.
3. You can even change the priority of the process by using the F7 and F8 keys.
4. You can also use the F6 key to change the default sort column.
Article created by Sander Mets, C11, EIK.