System and processes

The htop command

A more visual alternative to top, with CPU and memory bars and colours. Many people's favourite.

Syntax

htop

Most useful options

-u usuarioOnly that user's processes
F3 / 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 processes

You 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.

Related commands

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