htop flags & options

-p

Monitor specific PIDs only.

htop -p 1234
htop -p 1234,5678

-u

Show only processes for a specific user.

htop -u www-data

-d

Set the update delay in tenths of a second.

htop -d 10

-s, --sort-key

Sort by a specific column on startup.

htop -s PERCENT_CPU
htop -s PERCENT_MEM

-t, --tree

Start in tree view mode showing process hierarchy.

htop -t

--no-color

Disable colors in the output.

htop --no-color

-C

Start in monochrome mode.

htop -C

Interactive keys

These work while htop is running.

F5 - toggle tree view
F6 - select sort column
F9 - kill a process
/ - search processes
u - filter by user
H - toggle user threads
K - toggle kernel threads