From ce9b0e1059f71ab435a93c36888dce53678404ed Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Sat, 2 Jan 2016 01:12:34 +0000 Subject: [PATCH] pgrep: remove pkill example and correct tokens --- pages/common/pgrep.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pages/common/pgrep.md b/pages/common/pgrep.md index 8768690f2..750a5f69d 100644 --- a/pages/common/pgrep.md +++ b/pages/common/pgrep.md @@ -4,16 +4,12 @@ - return PIDs of any running processes with a matching command string -`pgrep {{Finder}}` +`pgrep {{process_name}}` - search full command line with parameters instead of just the process name -`pgrep -f "{{ssh root}}"` +`pgrep -f "{{process_name}} {{parameter}}"` - search for process run by a specific user -`pgrep -u root {{firefox}}` - -- kill all processes which match - -`pkill -9 {{Finder}}` +`pgrep -u root {{process_name}}`