Htop Navigation, Search, Filter, Sort, and Tree View

Interactive keys and workflows for moving around htop, searching processes, filtering by command, changing sort columns, and working in tree view.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all

Interactive navigation

Move through large process lists and inspect long command lines.

Scroll through the process list

Use arrows, PgUp, and PgDn to move around.

textANYnavigationscroll
text
Up / Down / PgUp / PgDn
Notes

Basic navigation keys for long lists of processes.

Open help

Show the built-in key reference.

textANYhelpkeys
text
F1 or h or ?
Notes

Quickest way to confirm key bindings in the current build.

Show wrapped command line

Display the full command line in a separate screen.

textANYcommand-lineinspect
text
w
Notes

Useful when the process list truncates long command arguments.

Open setup

Configure meters, columns, colors, and display options.

textANYsetupconfig
text
F2 or S
Notes

Persistent configuration is adjusted through the setup screen.

Open sort menu

Select the active sort column interactively.

textANYsortcolumns
text
F6 or < or >
Notes

Lets you switch sorting without restarting htop.

Invert current sort order

Toggle ascending versus descending sort.

textANYsortorder
text
I
Notes

Useful when you need to flip from heaviest-first to lightest-first quickly.

Search, filter, and tree workflows

Search processes, apply incremental filters, and work with process trees.

Filter process list

Show only processes whose command lines match fixed-string terms.

textANYfiltermatch
text
F4 or \\
Notes

Filtering is case-insensitive and supports multiple terms separated by `|`.

Toggle tree view

Switch between hierarchical and sorted-list views.

textANYtreehierarchy
text
F5 or t
Notes

Shows parent-child relationships between processes.

Expand or collapse a subtree

Control how much of the tree is visible.

textANYtreeexpandcollapse
text
+  -  *
Notes

In tree view, `+` and `-` control one subtree, while `*` expands or collapses top-level trees.

Start filtered and sorted by CPU

Useful watch mode for busy hosts.

bashANYcpusortrefresh
bash
htop --sort-key=PERCENT_CPU -d 10
Notes

Refreshes about every second and surfaces CPU-heavy tasks near the top.

Watch one user's processes in tree view

Combine user filter and hierarchy view.

bashANYusertreepostgres
bash
htop -u postgres -t
Notes

Handy for database process trees such as background workers and child processes.

Recommended next

No recommendations yet.