Use the lsof command to find the processes using the file:

Bash
fuser -k <filename>

Bash
lsof | grep <filename>

-k option will kill the processes using the file.

Leave a Comment

Your email address will not be published. Required fields are marked *