diff --git a/pages/common/pgrep.md b/pages/common/pgrep.md index 1f5221736e..50bbe43967 100644 --- a/pages/common/pgrep.md +++ b/pages/common/pgrep.md @@ -1,15 +1,16 @@ # pgrep -> Find or signal process by name. +> Find or signal processes by name. +> More information: . - Return PIDs of any running processes with a matching command string: `pgrep {{process_name}}` -- Search full command line with parameters instead of just the process name: +- Search for processes including their command line options: -`pgrep -f "{{process_name}} {{parameter}}"` +`pgrep --full "{{process_name}} {{parameter}}"` -- Search for process run by a specific user: +- Search for processes run by a specific user: -`pgrep -u root {{process_name}}` +`pgrep --euid root {{process_name}}`