2023-05-09 20:02:34 +00:00
|
|
|
# kill a process by id
|
2024-11-19 08:17:14 +00:00
|
|
|
k() { sa__kill "${@}"; }
|
|
|
|
sa__kill() {
|
2024-11-16 14:40:17 +00:00
|
|
|
kill \
|
|
|
|
"${@}"
|
|
|
|
}
|
2023-05-09 20:02:34 +00:00
|
|
|
|
|
|
|
# force kill a process by id
|
2024-11-19 08:17:14 +00:00
|
|
|
kf() { sa__kill_force "${@}"; }
|
|
|
|
sa__kill_force() {
|
2024-11-16 14:40:17 +00:00
|
|
|
kill \
|
|
|
|
-9 \
|
|
|
|
"${@}"
|
|
|
|
}
|