Tuesday, August 28, 2012

How do you kill a process tree in UNIX?

Sometimes processes tend to re-spawn after being killed even if the parent process is killed.
The command below will kill all of the process (e.g. httpd process) :

ps -ef | grep httpd | awk '{print $2}' | xargs kill -9

No comments :