Tuesday, 10 January 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]
Example:
sudo killall -9 firefox
sudo killall -9 thunderbird
sudo killall -9 rhythmbox


Harry

Author & Editor

A technology enthusiast and addictive blogger who likes to hacking tricks and wish to be the best White Hacket Hacker of the World.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.