sudo apt install htop (Ubuntu/Debian) or from EPEL with sudo dnf install htop (AlmaLinux/Rocky), then run htop. The top shows one bar per CPU core, memory, swap, tasks and load average; below is every process. Press P to sort by CPU, M by memory, F4 to filter, F9 to kill and q to quit.
Before you start
- Connect with SSH.
- Commands use
sudo. If you are logged in as root, leave it out. - htop only reads information unless you press a key that changes something (kill, renice). Start it with
htop --readonlyif you want to rule that out.
How to install htop
- Ubuntu / Debian
- AlmaLinux / Rocky
htop --version. Ubuntu 24.04 ships htop 3.3.0.
How to read the htop screen
Runhtop. The screen has a header (meters) and a process list.
The bars use colours for different kinds of use. Press
F1 to see the legend for your colour scheme. It reads CPU usage bar: [low/normal/kernel/guest used%] and Memory bar: [used/shared/compressed/buffers/cache used/total]. A CPU bar that is mostly kernel time or a memory bar that is mostly used (not cache) is worth a closer look.
What the htop columns mean
CPU% above 100 is normal. On a 4-core server, one process can reach 400%. It means the program uses several cores, not that something is broken.How to find the busiest processes
1
Sort by CPU or memory
Press
P to sort by CPU%, M by MEM% or T by TIME+. Press F6 to pick any column, and I to reverse the order.2
Filter the list
Press
F4 and type part of a name, for example nginx. Only matching processes stay on screen. Press F4 then Esc to clear it.3
See which program started what
Press
F5 for the tree view. Child processes appear under their parent, which helps with web servers, PHP-FPM pools and game server wrappers.4
Show only one user
Press
u and choose a user, for example www-data or alex.5
Hide threads
Press
H to hide user threads so each program appears once.How to kill or slow down a process in htop
1
Select the process
Move to it with the arrow keys, or press
F3 and type part of its name.2
Send a signal
Press
F9. SIGTERM (15) is selected first and asks the program to close cleanly. Press Enter. Use SIGKILL (9) only if it doesn’t stop.3
Or lower its priority
Press
F8 to raise its nice value so other processes get the CPU first. Only root can lower the nice value again (F7).How to check it worked
After a kill or priority change, the process should vanish from the list or show the newNI value. To confirm from the command line:
Frequently asked questions
What is the difference between top and htop?
top is installed on every Linux server. htop adds colour meters, scrolling, mouse support, a tree view and kill or renice without typing a PID. Both read the same kernel data.
Why does htop show memory almost full?
Check the used part of the bar (F1 shows its colour), not the total. Linux uses spare RAM as cache and frees it on demand. free -h shows the real headroom in the available column. See check memory usage.
Where does htop save my settings?
In~/.config/htop/htoprc. Change settings with F2 (Setup) rather than editing the file, because htop overwrites it on exit.
Why is a process stuck in state D?
D means it is waiting for disk or network I/O and can’t be killed until that finishes. Check the disk with iostat and iotop.
Does htop slow my server down?
Very little. If you leave it open for a long time, raise the refresh delay withhtop -d 30 (3 seconds).
Related guides
VPS and dedicated server guides
Every server guide in one place.
Find what is using CPU
Track down a busy process.
Check memory usage
free, available memory and swap.
What is load average?
Read the three numbers.
Kill a process
kill, pkill and killall.
VPS Panel resource graphs
CPU, memory and network history.
Checked against the htop manual and the Fedora EPEL package list on 4 November 2026; commands tested on Ubuntu 24.04 LTS with htop 3.3.0. Commands can differ on other distributions or releases.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: November 2026