Tuesday, January 10, 2017

How to kill a process by name on Ubuntu

On the previous article i show you how to kill process using kill command, which require process id (PID) of the program that you want to kill. But actually you can also kill a process by it's name.

To kill a process by the name, you can use 'killall' command, instead of 'kill', like this:
sudo killall -9 [process-name]
sudo killall -9 firefox
sudo killall -9 thunderbird
sudo killall -9 rhythmbox

No comments:

Post a Comment