Restrict the list to one or more specific processes.

Section: Install and start

Show only selected PIDs

bash
bash
htop -p 1,1234,5678
Explanation

Useful when watching a small set of services or worker 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 Install and start
Show only one user's processes
Start htop already filtered by user.
OpenIn sheetbashsame section
Install on Debian or Ubuntu
Install htop from APT repositories.
OpenIn sheetbashsame section
Install on RHEL, CentOS Stream, Fedora
Install htop with dnf.
OpenIn sheetbashsame section
Install on Arch Linux
Install htop with pacman.
OpenIn sheetbashsame section
Launch htop
Start the interactive process viewer.
OpenIn sheetbashsame section
Set update delay in tenths of a second
Control refresh cadence from the command line.
OpenIn sheetbashsame section