-
-
Save cybort/c29e81b9a0a446a1f58ed0e7418f9b08 to your computer and use it in GitHub Desktop.
Linux - Kill all processes of deleted files that are still open
This file contains hidden or 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
#!/bin/bash | |
lsof|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