From 69d9784679113b9178466d45847e321adcaa3da7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 14 May 2023 16:26:24 +0200 Subject: [PATCH] kill,killall --- bash/alias/kill.sh | 9 +++++++-- bash/alias/killall.sh | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/bash/alias/kill.sh b/bash/alias/kill.sh index dbe03d1..970352d 100644 --- a/bash/alias/kill.sh +++ b/bash/alias/kill.sh @@ -1,5 +1,10 @@ # kill a process by id -alias k='kill' +alias k="\ +kill \ +" # force kill a process by id -alias kf='kill -9' +alias kf="\ +kill \ +-9 \ +" diff --git a/bash/alias/killall.sh b/bash/alias/killall.sh index 76c30a7..43c4cbe 100644 --- a/bash/alias/killall.sh +++ b/bash/alias/killall.sh @@ -1,5 +1,10 @@ # kill all instances of a process by name -alias ka='killall' +alias ka="\ +killall \ +" # force kill all instances of a process by name -alias kaf='killall -9' +alias kaf="\ +killall \ +-9 \ +"