check and clean zombie processes linux code example
Example: How can you identify zombie processes on the Linux system
Zombie processes can be found easily with the ps -l command.
Within the ps output there is a STAT column which will show the
processes current status, a zombie process will have Z as the status.
In addition to the STAT column zombies commonly have the words
<defunct> in the CMD column as well.