How to terminate a process which is running and the specialty on command kill 0?

With the help of kill command we can terminate the process.Syntax: kill pidKill 0 - kills all processes in your system except the login shell.

Showing Answers 1 - 7 of 7 Answers

Chiranjeevi Manne

  • Mar 28th, 2007
 

    KILL <PID> : Kills the process with specific ProcessID
    KILL -9 <PID> : Kills a stubburn process which can't killed using KILL command
    KILL 0 : Kills all the processes and some times this may result in system crash also causing heavy core dump

Abhijit

  • Jun 7th, 2007
 

Kill -9 <proc. id>is used to killl a process and all its child processes

  Was this answer useful?  Yes

hara k

  • Nov 5th, 2007
 

Child processes will not be killed with kill -9 command. Will you please verify your comment.

  Was this answer useful?  Yes

vthegde

  • Dec 14th, 2007
 

as i remember kill 0 has a special purpose. no process is killed with this. it can be used to examine if a pid is alive. kill -0 pid would return if the process is alive, else false. correct me.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions