htop: a clear view of processes and system load in the console

htop is the convenient successor to the classic top: coloured bars for CPU and memory, operation with arrow keys and mouse, searching, filtering, a tree view and killing processes at the press of a key. On practically every Linux server it is one of the first packages you install.

Installation

# Ubuntu / Debian
sudo apt install htop

# Fedora
sudo dnf install htop

# Arch Linux
sudo pacman -S htop

Start it simply with htop. If you want to kill other users’ processes or change their priority, start it with sudo htop.

Understanding the display

In the upper area htop shows one bar per CPU core as well as bars for memory (Mem) and swap (Swp). The colours have a meaning:

  • CPU: green = normal processes, red = kernel, blue = low-priority processes
  • Mem: green = actually used, blue = buffers, yellow/orange = cache

The cache is released immediately when needed. A “full” memory bar with a lot of yellow is therefore not a problem – what matters is the green part. To the right you see the number of tasks, the load average (average load over the last 1, 5 and 15 minutes) and the uptime since the last reboot. As a rule of thumb: if the load is permanently above the number of CPU cores, the system is overloaded.

The most important keys

KeyFunction
F3 or /Search for a process
F4 or \Filter the list (show matching processes only)
F5 or tTree view (parent and child processes)
F6 or < >Choose the sort column
P / M / TSort by CPU / memory / time
uShow only one user’s processes
SpaceTag a process (for actions on several)
F7 / F8Raise / lower the priority (nice)
F9 or kSend a signal, e.g. 15 SIGTERM or 9 SIGKILL
HShow/hide program threads
F2Setup (columns, meters, colours)
F1 / F10Help / quit

When killing a process, try SIGTERM (15) first: the process can then still clean up properly. SIGKILL (9) terminates immediately and is only meant for hung processes.

Customising the view

F2 lets you add extra columns – for example IO_READ_RATE and IO_WRITE_RATE to find processes causing heavy disk load – as well as further meters such as temperature, disk I/O or network. htop saves the settings automatically in ~/.config/htop/htoprc.

Handy start options:

# Only one user's processes
htop -u www-data

# Only specific processes (PIDs)
htop -p 1234,5678

# Refresh more slowly (in tenths of a second), e.g. over a slow SSH connection
htop -d 30

htop, btop or nmon?

btop (sudo apt install btop) is visually more elaborate and additionally shows graphs for network and disks. If you want to record the load over hours, reach for nmon. For a quick look at a server, however, htop remains the tool of choice.

Originally published in 2012, completely revised in November 2026.