How to kill all zombie process in a Linux server

We can't just kill a zombie process because they are already dead processes. Inorder to remove them from the ps list, you need to kill its parent process. You can use the following command to kill the parent process of zombie processes.

kill -9 $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')

Comments

Popular posts from this blog

CDbConnection failed to open the DB connection mysql 8

Oracle 10g installation steps in CentOS 5

/bin/sh^M: bad interpreter: No such file or directory Linux