htop
Interactive process viewer and system monitor
Overview
An interactive system-monitor, process viewer, and process manager. An enhanced version of top with a more user-friendly interface.
Syntax
htop [options]Common Options
-d, --delay=DELAYSet the delay between updates, in tenths of seconds.
-u, --user=USERNAMEShow only processes of a given user.
-p, --pid=PIDShow only the given PIDs.
-s, --sort-key=COLUMNSort by this column.
-t, --treeShow processes in tree view.
Interactive Commands
| Key | Action |
|---|---|
| F1 or h | Help screen |
| F2 or S | Setup / Configuration |
| F3 or / | Incremental process search |
| F4 or \\ | Filter processes by name |
| F5 or t | Toggle tree view |
| F6 or <, > | Select sort column |
| F9 or k | Kill process |
| F10 or q | Quit |
| Space | Tag/untag process |
| u | Show only processes of a selected user |
| M | Sort by memory usage |
| P | Sort by CPU usage |
| T | Sort by time |
Examples
$ htop
Launch the interactive process viewer.
$ htop -u www-data
Show only processes owned by www-data user.
$ htop -t
Start with tree view enabled.
$ htop -s PERCENT_CPU
Sort by CPU percentage.
Related Commands
htoptopprocessmonitorcpumemoryinteractive