pkill
Signal process by name. Mostly used for stopping processes. More information: <https://www.man7.org/linux/man-pages/man1/pkill.1.html>.
Install
- All systems
-
curl cmd.cat/pkill.sh
- Debian
-
apt-get install procps - Ubuntu
-
apt-get install procps -
Alpine
-
apk add procps - Arch Linux
-
pacman -S procps-ng - Kali Linux
-
apt-get install procps - CentOS
-
yum install procps-ng - Fedora
-
dnf install procps-ng - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install procps - Raspbian
-
apt-get install procps - Docker
-
docker run cmd.cat/pkill pkillpowered by Commando
Signal process by name. Mostly used for stopping processes. More information: <https://www.man7.org/linux/man-pages/man1/pkill.1.html>.
-
Kill all processes which match:
pkill "process_name" -
Kill all processes which match their full command instead of just the process name:
pkill -f "command_name" -
Force kill matching processes (can't be blocked):
pkill -9 "process_name" -
Send SIGUSR1 signal to processes which match:
pkill -USR1 "process_name" -
Kill the main `firefox` process to close the browser:
pkill --oldest "firefox"
© tl;dr; authors and contributors