Created
June 22, 2016 22:44
-
-
Save camsaul/54cc74fd4b65a7348f0c1cf370e37298 to your computer and use it in GitHub Desktop.
Killing process locking a file
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
# list process that owns a file | |
lsof | grep myfile | |
# kill all java processes | |
killall -9 java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment