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!


Buzz This    



     Leave a Comment      Browse the Archives     


  • Suraj
    Hello,
    Is this possible to kill a linux process from windows command line
  • You mean doing it remotely from a windows box?
  • muthu
    is this guide not possible for ppuppy linux sir....

    so how can i get to kill a process in linux without knowing it's process id ?

    plz help me..

    Thank you so much...
blog comments powered by Disqus

Trackbacks