From 07c2ebcc511f2549ec267f9f3ef61b797ddb669d Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Wed, 24 Mar 2021 21:01:07 -0300 Subject: [PATCH] pkill: add --oldest example and link (#5445) --- pages/common/pkill.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pages/common/pkill.md b/pages/common/pkill.md index a0d89acaf..aeff3ca6e 100644 --- a/pages/common/pkill.md +++ b/pages/common/pkill.md @@ -2,15 +2,20 @@ > Signal process by name. > Mostly used for stopping processes. +> More information: . - Kill all processes which match: -`pkill -9 {{process_name}}` +`pkill -9 "{{process_name}}"` - Kill all processes which match their full command instead of just the process name: -`pkill -9 -f "{{command_name}}"` +`pkill -9 --full "{{command_name}}"` - Send SIGUSR1 signal to processes which match: -`pkill -USR1 {{process_name}}` +`pkill -USR1 "{{process_name}}"` + +- Kill the main `firefox` process to close the browser: + +`pkill --oldest "{{firefox}}"`