Date: 30 Jan 2003 22:06:28 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com> To: freebsd-questions@freebsd.org Subject: Re: Ooops. Message-ID: <44znpinhl7.fsf@be-well.ilk.org> In-Reply-To: <1043981504.3e39e4c0b6e66@webmail.adam.com.au> References: <005601c2c8c5$47735b10$6501a8c0@grant> <1043981504.3e39e4c0b6e66@webmail.adam.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
bastill@adam.com.au writes: > rm will, unless specifically denied (I THINK you can do that), also follow symlinks. > In my case I was copying files from one HD to another, put one in the wrong > place, and deleted it using rm -rf , only to find that it deleted the original > as well! :-( Eh? > PS I think rm needs looking at so it defaults to NOT deleting copy AND source by > default. [502] (be-well) lowell> mkdir temp [503] (be-well) lowell> cd temp [504] (be-well) temp> mkdir a b [505] (be-well) temp> touch a/foo [506] (be-well) temp> ln -s a/foo b/baz [507] (be-well) temp> ls -l a b a: total 0 -rw-r--r-- 1 lowell lowell 0 Jan 30 22:05 foo b: total 0 lrwxr-xr-x 1 lowell lowell 5 Jan 30 22:05 baz@ -> a/foo [508] (be-well) temp> rm -rf b [509] (be-well) temp> ls -l * total 0 -rw-r--r-- 1 lowell lowell 0 Jan 30 22:05 foo [510] (be-well) temp> Can you explain what you think is a problem? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44znpinhl7.fsf>