Re: root can not delete a directory ,why?
On Wed, 21 Dec 2005, Gene Heskett wrote:
Humm, you weren't perchance cd'd into the directory?
Actually unix will let you delete a directory that is in use. Harley Hahn
once described this as sawing off the branch you are sitting on.
Eg:
$mkdir /tmp/foo
$cd /tmp/foo
$rmdir /tmp/foo
$pwd
/tmp/foo
$ls -a
$cd
$cd /tmp/foo
bash: cd: /tmp/foo: No such file or directory
The primary cause of the error the original poster was concerned with is
that the directory is a mount point and I see the original poster
confirmed this was the case.
Cheers,
Rob
--
Robert Brockway B.Sc. Phone: +1-416-669-3073
Senior Technical Consultant Email: support@opentrend.net
OpenTrend Solutions Ltd. Web: www.opentrend.net
We are open 24x365 for technical support. Call us in a crisis.
Reply to: