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
Scroll through the process list
Up / Down / PgUp / PgDn

# Use arrows, PgUp, and PgDn to move around.

Open help
F1 or h or ?

# Show the built-in key reference.

Show wrapped command line
w

# Display the full command line in a separate screen.

Open setup
F2 or S

# Configure meters, columns, colors, and display options.

Open sort menu
F6 or < or >

# Select the active sort column interactively.

Invert current sort order
I

# Toggle ascending versus descending sort.

## Search, filter, and tree workflows
Filter process list
F4 or \\

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

Toggle tree view
F5 or t

# Switch between hierarchical and sorted-list views.

Expand or collapse a subtree
+  -  *

# Control how much of the tree is visible.

Start filtered and sorted by CPU
htop --sort-key=PERCENT_CPU -d 10

# Useful watch mode for busy hosts.

Watch one user's processes in tree view
htop -u postgres -t

# Combine user filter and hierarchy view.

Recommended next

No recommendations yet.