[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.

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 cwd has nothing to do with the OS, it is purely a way to instruct
the shell how to do globbing.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
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: