Use PID filter for targeted monitoring of a service.
Section: Startup modes
Focus on a process after startup
bash
bash
htop -p "$(pgrep -d, -f 'gunicorn|uvicorn')"Explanation
Creates a focused watch list for matching service 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 Startup modes
Start tree view with an explicit sort key
Combine tree mode and sorting from the command line.
Run inside a container shell
Inspect processes visible inside the current container namespace.
Show only selected PIDs
Restrict the list to one or more specific processes.