commands

htop — interactive process monitor

Optional interactive task viewer. Filter to your own shell PID and exit with q or F10; do not use signal or priority actions. Output varies by version. Use a fresh private workspace, ordinary user and bounded child processes; no sudo.

Formal Syntax & Structure

linux syntaxlinux
htop -p PID

Parameters & Attributes

NameTypeDescription
-poptionPID filter

Return Value

exit status and output

Optional interactive task viewer. Filter to your own shell PID and exit with q or F10; do not use signal or priority actions. Output varies by version.

Working Example

Example Snippetlinux
htop -p "$$"
Linux Reference