Linux: Killall command
There is a number way of killing processes on a Linux based OS, killall is one of these methods. It’s always good to be ready to kill an unwanted process or a rogue process which is eating resources.
Kill all instances of the “httpd” process
Kill all proccesses running under the user “postfix”
killall -u postfix
Kill a specific process but its full path
Command not found?
It does not always come pre-installed, it’s simple to install.
Ubuntu / Debian
apt-get install psmisc
RHEL – Red hat / Fedora / CentOS
yum install psmisc
This package also contains the following useful programs:
fuser– identifies what processes are using files.
killall– kills a process by its name, similar to a
pstree– Shows currently running processes in a tree format.
peekfd– Peek at file descriptors of running processes.