Skip to content
Published On:
Jan 5, 2017
Last Updated:
Jul 29, 2019

pkill is a program that can be used to send a signal to a processes, by specifying a regex pattern that matches part of the process name (or it’s full command line name with the -f option).

Force Kill

The most direct way to kill a process is with:

Terminal window
$ sudo pkill -9 "this_matches_part_of_process_name"

The -9 option tells pkill to issue the SIGKILL signal.

Be Careful!

pkill can be the nuclear bomb of all kill tools, as it is surprisingly easy to make the pattern too weak, and it matches something you didn’t intend. And a way to crash your computer:

Terminal window
$ sudo pkill -9 ".*"