Options (3)
-a, --list-fullbooleanAlso display the full command
Example:
pgrep {{[-a|--list-full]}} {{process_name}}-f, --fullbooleanSearch for processes including their command-line options
Example:
pgrep {{[-f|--full]}} "{{process_name}} {{parameter}}"-u, --euidbooleanSearch for processes run by a specific user
Example:
pgrep {{[-u|--euid]}} {{username}} {{process_name}}Examples (4)
Return PIDs of any running processes with a matching command string
pgrep process_nameAlso display the full command
pgrep [-a|--list-full] process_nameSearch for processes including their command-line options
pgrep [-f|--full] "process_name parameter"Search for processes run by a specific user
pgrep [-u|--euid] username process_namemade by @shridhargupta | data from tldr-pages