Find

How to kill zombie process

a zombie process or defunct process is a process that has completed execution (via the exit system call) but still has an entry in the process table

script for show zombie process.
$ ps aux  awk '{ print $8 " " $2 }'  grep -w Z
-show.

Z 12345 << Exam. process id and Z declare zombie process. -type of process have by under. R=running.
S=sleeping or stoped.
Z=zombie.

script for kill zombie process.
$ kill -9 `ps -A -ostat,ppid,pid,cmd  grep -e '^[Zz]'  awk '{print $2}'`