[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: root can not delete a directory ,why?

Robert Brockway wrote:
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

No, it will not.

Hahn once described this as sawing off the branch you are sitting on.


$mkdir /tmp/foo
$cd /tmp/foo
$rmdir /tmp/foo
$ls -a
$cd /tmp/foo
bash: cd: /tmp/foo: No such file or directory

The cwd has nothing to do with the OS, it is purely a way to instruct
the shell how to do globbing.

This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!

Reply to: