From f448f16ccac55268257ea0683f215010285f7557 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 24 Nov 2022 17:44:48 +0100 Subject: [PATCH] killall: split linux and common (#9550) * killall: split linux and osx * killall: oh * mnenomic lol Co-authored-by: Emily Grace Seville Co-authored-by: Emily Grace Seville --- pages/common/killall.md | 4 ++-- pages/linux/killall.md | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 pages/linux/killall.md diff --git a/pages/common/killall.md b/pages/common/killall.md index 351073e89..258827544 100644 --- a/pages/common/killall.md +++ b/pages/common/killall.md @@ -8,9 +8,9 @@ `killall {{process_name}}` -- List available signal names (to be used without the 'SIG' prefix): +- [l]ist available signal names (to be used without the 'SIG' prefix): -`killall --list` +`killall -l` - Interactively ask for confirmation before termination: diff --git a/pages/linux/killall.md b/pages/linux/killall.md new file mode 100644 index 000000000..351073e89 --- /dev/null +++ b/pages/linux/killall.md @@ -0,0 +1,25 @@ +# killall + +> Send kill signal to all instances of a process by name (must be exact name). +> All signals except SIGKILL and SIGSTOP can be intercepted by the process, allowing a clean exit. +> More information: . + +- Terminate a process using the default SIGTERM (terminate) signal: + +`killall {{process_name}}` + +- List available signal names (to be used without the 'SIG' prefix): + +`killall --list` + +- Interactively ask for confirmation before termination: + +`killall -i {{process_name}}` + +- Terminate a process using the SIGINT (interrupt) signal, which is the same signal sent by pressing `Ctrl + C`: + +`killall -INT {{process_name}}` + +- Force kill a process: + +`killall -KILL {{process_name}}`