Skip to content

Instantly share code, notes, and snippets.

@the-dan
Created November 17, 2011 18:54
Show Gist options
  • Save the-dan/1374081 to your computer and use it in GitHub Desktop.
Save the-dan/1374081 to your computer and use it in GitHub Desktop.
Find processes holding deleted file descriptors
P=`sudo lsof | grep '(deleted)' | awk '{ print $2 }'`
for x in $P; do
cat /proc/$x/cmdline;
echo "";
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment