Operating System - HP-UX
1754294 Members
3414 Online
108813 Solutions
New Discussion

cannot unlink: Text file busy

 
Dennis Handly
Acclaimed Contributor

Re: cannot unlink: Text file busy

>OldSchool: Note that if there is/are hardlinks in place, then deleting one will delete all.

No, deleting one will just decrement the count. When it goes to zero and there isn't any access, the file will be removed. But if it has text busy, you can't remove that last link. That's why "ln -f" works.

>I believe, but can't prove, that fuser will show the file in use based on the i-node.

I don't think fuser(1m) is smart enough to find text busy type of access?
And should be trivial to prove, see if libc or $SHELL is in use.