2025-03-14 21:59:59 -06:00
|
|
|
# pgrep
|
|
|
|
|
|
|
|
|
|
> Find or signal processes by name.
|
|
|
|
|
> More information: <https://www.manned.org/pgrep>.
|
|
|
|
|
|
|
|
|
|
- Return PIDs of any running processes with a matching command string:
|
|
|
|
|
|
|
|
|
|
`pgrep {{process_name}}`
|
|
|
|
|
|
|
|
|
|
- Search for processes including their command-line options:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pgrep {{[-f|--full]}} "{{process_name}} {{parameter}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Search for processes run by a specific user:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pgrep {{[-u|--euid]}} root {{process_name}}`
|