Skip to content

Instantly share code, notes, and snippets.

@jrhea
Created July 12, 2014 18:20
Show Gist options
  • Save jrhea/4067f42c942da19618fa to your computer and use it in GitHub Desktop.
Save jrhea/4067f42c942da19618fa to your computer and use it in GitHub Desktop.
Kill process that is locking a file
#lsof |grep -i <any_file> to find out the process #kill -9 <pid> to terminate the program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment