Linux Commands Examples

A great documentation place for Linux commands


- send a signal to all processes.

see also : halt - reboot - pidof


killall5 -signalnumber [-o omitpid[,omitpid..]] [-o omitpid[,omitpid..]..]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


echo "Sending all processes the TERM signal..."
killall5 -15
sleep 5
echo "Sending all processes the KILL signal..."
killall5 -9
: exit 0


killall5 is the SystemV killall command. It sends a signal to all processes except kernel threads and the processes in its own session, so it won’t kill the shell that is running the script it was called from. Its primary (only) use is in the rc scripts found in the /etc/init.d directory.


-o omitpid

Tells killall5 to omit processes with that process id.

exit status

The program return zero if it killed processes. It return 2 if no process were killed, and 1 if it was unable to find any processes (/proc/ is missing).


killall5 can also be invoked as pidof, which is simply a (symbolic) link to the killall5 program.

see also

halt , reboot , pidof


Miquel van Smoorenburg, miquels[:at:]cistron[:dot:]nl

How can this site be more helpful to YOU ?

give  feedback