Created
August 16, 2017 06:50
-
-
Save wilvk/aad8ac55bb1fb4ff60c727f638d10f47 to your computer and use it in GitHub Desktop.
Linux - Kill all processes of deleted files that are still open
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
#!/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
Awesome! Thank you!