This is an old revision of the document!
pgrep
Search for process names using grep
Display all processes a user is running
pgrep -u user -l
Display PID and binary name
pgrep -l sshd
Display number of processes running matching a name
Useful for cron jobs:
pgrep -u clients -x rdiff-backup -c