14 lines
245 B
Bash
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 \
|
|
"${@}"
|
|
}
|