Created
May 18, 2014 06:03
-
-
Save czpython/a21ac2fc3bb544eb6ece to your computer and use it in GitHub Desktop.
Kill processes using deleted files. This frees up memory used by files that were unlinked but are kept open by a process.
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
lsof +L1 | grep 'deleted' | awk '{print $2}' | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment