Print list of zombie's processes in linux
Sometimes you may need to print out list of zombie processes in Linux. Here is the command which can help you:
~> ps -eo pid,ppid,state,user,comm | awk 'BEGIN { count=0 } $3 ~ /Z/ { count++; print $1,$2,$3,$4,$5 } END { print "\n" count " Zombie(s) to slay." }'
No comments:
Post a Comment