From b5408a18d4ce734b25e52f3aa986265c4abf463d Mon Sep 17 00:00:00 2001 From: Chirag Date: Sat, 1 Mar 2014 11:36:58 +0530 Subject: [PATCH] Updating pgrep page Added parameters for searching by user and searching by complete command with parameters --- common/pgrep.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/pgrep.md b/common/pgrep.md index 497c11c1c0..c208d28033 100644 --- a/common/pgrep.md +++ b/common/pgrep.md @@ -10,6 +10,14 @@ `pgrep -i {{fireFOx}}` +- search full command line with parameters instead of just the process name + +`pgrep -f {{ssh root}}` + +- search for process run by a specific user + +`pgrep -u root {{firefox}}` + - kill all processes which match `pkill -9 {{Finder}}`