Skip to content

Instantly share code, notes, and snippets.

@tatapbl4
Created October 5, 2017 18:38
Show Gist options
  • Save tatapbl4/e41ac12ec084d59e822edee00b7aaaeb to your computer and use it in GitHub Desktop.
Save tatapbl4/e41ac12ec084d59e822edee00b7aaaeb to your computer and use it in GitHub Desktop.
remove deleted but still opened file for rhel6
# https://access.redhat.com/solutions/2316
lsof | grep deleted | awk '{print $8}' | xargs sum 2> /dev/null | awk '{ SUM += $2 } END { print SUM }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment