Count processes that match a pattern.
Section: Signals Reference and Delivery
Count matching processes
bash
bash
pgrep -c sshdExplanation
Count processes that match a pattern.
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 Signals Reference and Delivery