rwx/sh/alias/killall.sh
2024-11-19 14:42:11 +01:00

14 lines
245 B
Bash

# kill all instances of a process by name
ka() { a__kill_all "${@}"; }
a__kill_all() {
killall \
"${@}"
}
# force kill all instances of a process by name
kaf() { a__kill_all_force "${@}"; }
a__kill_all_force() {
killall \
-9 \
"${@}"
}