From 017642dd9eab396f4505290597664630416c6e4d Mon Sep 17 00:00:00 2001 From: Alex Meng Date: Wed, 13 Jan 2016 15:03:35 -0700 Subject: [PATCH] pkill: Add example with -f flag Its useful to be able to kill processes by their full command. The pgrep tldr page already has a -f flag example. --- pages/common/pkill.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/pkill.md b/pages/common/pkill.md index b96a8ec24..a0d89acaf 100644 --- a/pages/common/pkill.md +++ b/pages/common/pkill.md @@ -7,6 +7,10 @@ `pkill -9 {{process_name}}` +- Kill all processes which match their full command instead of just the process name: + +`pkill -9 -f "{{command_name}}"` + - Send SIGUSR1 signal to processes which match: `pkill -USR1 {{process_name}}`