5

Tip #532   Kill the process locking a file

If you're having problems unmounting a volume or other situations where a process accessing a file can stop you, the following will kill the process accessing 'filename'.

fuser -k filename