device or resource busy 1

device or resource busy

lsof +D /path
kill -9 $PID

Here is what the above code is Doing:
1. We’re using the lsof command to find the process id of the process that has the file open.
2. We’re using the kill command to kill the process.

Similar Posts