Created
June 11, 2021 04:16
-
-
Save Hemant-Mann/c87f3cd1ff7c1e7e3a8eac4f353b65a2 to your computer and use it in GitHub Desktop.
kill zombie processes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top -b1 -n1 | grep Z | |
ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }' | uniq | xargs ps -p | |
kill $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment