Htop Navigation, Search, Filter, Sort, and Tree View/Watch one user's processes in tree view

Combine user filter and hierarchy view.

Section: Search, filter, and tree workflows

Watch one user's processes in tree view

bash
bash
htop -u postgres -t
Explanation

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

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Search, filter, and tree workflows
Toggle tree view
Switch between hierarchical and sorted-list views.
OpenIn sheettextsame section
Expand or collapse a subtree
Control how much of the tree is visible.
OpenIn sheettextsame section
Search command lines
Find matching processes incrementally.
OpenIn sheettextsame section
Filter process list
Show only processes whose command lines match fixed-string terms.
OpenIn sheettextsame section
Start filtered and sorted by CPU
Useful watch mode for busy hosts.
OpenIn sheetbashsame section
Scroll through the process list
Use arrows, PgUp, and PgDn to move around.