Search for process IDs using a pattern.
Section: Processes Jobs and Scheduling
Find process IDs by name
bash
bash
pgrep -af nginxExplanation
Great for scripts and quick service discovery.
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 Processes Jobs and Scheduling