How to kill a process in linux without knowing it's process id ?

Advertisements
When various daemons or processes freeze or hang up, they need to be forcefully terminated in order to stop the illegal operation or harm they may be causing to your system. The general procedure to kill or terminate any process on Linux is to first find out it’s pid (Process Id) using a grep command on the ps -A command. This will tell us the pid of the process to be killed. Then this pid is passed as a parameter to the kill command to terminate the process.
But this is a very lengthy process involving two steps. A process can be easily terminated in just one single step, using the pkill command. You just need to know the name of the process to be killed. All you have to do is pass this process name as a parameter to the pkill command to kill or terminate your process. Simple enough, eh?
killing a process in linux without the pkill command is a lengthy process

killing a process in linux without the pkill command is a lengthy process

Killing processes with pkill command is short and smart!

Killing processes with pkill command is short and smart!



May 18th, 2009 Written by The Digitizor    

Free subscription: Subscribe RSS feed or get daily tips in your email
* Click confirmation link sent in email * Don't see the email? check spam folder

  Facebook 


Liked it? Share...   Digg It!   Submit to Del.icio.us   Submit to Reddit   Stumble   Submit to Identica   Slashdot It   Send to a friend via email


blog comments powered by Disqus

Trackbacks