System and processes
The htop command
A more visual alternative to top, with CPU and memory bars and colours. Many people's favourite.
Syntax
htopMost useful options
-u usuarioOnly that user's processesF3 / F4Search and filter (on a real htop)F9Kill the selected process (on a real htop)Copy-ready examples
$ htopView with bars$ htop -u rootOnly root's processesYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- htop is not installed on every distribution: you may need to install it with apt.
- Here a single simulated snapshot is shown.
FAQ
top or htop?
htop is nicer; top is everywhere and always works.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course