Skip to content

Instantly share code, notes, and snippets.

@Hemant-Mann
Created June 11, 2021 04:16
Show Gist options
  • Save Hemant-Mann/c87f3cd1ff7c1e7e3a8eac4f353b65a2 to your computer and use it in GitHub Desktop.
Save Hemant-Mann/c87f3cd1ff7c1e7e3a8eac4f353b65a2 to your computer and use it in GitHub Desktop.
kill zombie processes
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