rwx/sh/alias/killall.sh

15 lines
257 B
Bash
Raw Normal View History

2023-05-09 20:02:34 +00:00
# kill all instances of a process by name
2024-11-18 15:38:17 +00:00
ka() { sh_a__kill_all "${@}"; }
sh_a__kill_all() {
2024-11-16 14:42:21 +00:00
killall \
"${@}"
}
2023-05-09 20:02:34 +00:00
# force kill all instances of a process by name
2024-11-18 15:38:17 +00:00
kaf() { sh_a__kill_all_force "${@}"; }
sh_a__kill_all_force() {
2024-11-16 14:42:21 +00:00
killall \
2024-11-16 14:59:57 +00:00
-9 \
2024-11-16 14:42:21 +00:00
"${@}"
}