Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Kill processes using deleted files. This frees up memory used by files that were unlinked but are kept open by a process.
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