Thanks for the response.
It appears that rm-rf doesn't follow links after all.

pesarif

On Sun, 4 Nov 2001 12:21, ltiu wrote:
> Test it on a temporary directory with temporary links to useless files
> located somewhere else. See if the useless files are still there after the
> test.
>
> On Saturday 03 November 2001 16:46, pesarif wrote:
> > Sorry for posting two messages to the list at the same time but...:)
> >
> > I was just wondering whether or not:
> >
> > su
> > md afolder
> > cd afolder
> > ln -s / root
> > cd ..
> > rm -rf afolder
> >
> > would erase my entire filesystem?
> > As you may have guessed, I am not in a position to try this :)
> >
> > I ask this because cp -r follows links, unless -d is used.
> > However, there isn't an equivalent option for rm.
> >
> > So does rm follow links?
> >
> > Thanks again,


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to