Occasionally, I get file (typically after they are edited by Microsoft Word) that I can not delete:
> rm -rf foo.docx
rm: M_AI_SO.docx: Resource busy
However, lsof
doesn't report anything, even I run it as root:
> lsof | grep docx
>
How can I determine who is locking the file. And even more important: how can I delete it without a reboot?