Date: Wed, 22 Jul 2009 20:29:39 -0400 From: Glen Barber <glen.j.barber@gmail.com> To: jimmiejaz@gmail.com Cc: freebsd-questions@freebsd.org Subject: Re: rm -rf and fat fingers Message-ID: <4ad871310907221729i2e51429dy25c41ec44c9ef84f@mail.gmail.com> In-Reply-To: <4A67AC39.2060805@gmail.com> References: <4A67AC39.2060805@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 22, 2009 at 8:18 PM, Jimmie James<jimmiejaz@gmail.com> wrote: > So here I was, half asleep, removing some old directories as root, and > here's what I did...sitting in /home/jimmie after su > > jimmie@jimmiejaz <101> [0] /home/jimmie#rm -rf cd /usr/local/lib =A0 (not= e the > space, the PWD is home/jimmie/) > > Now, a lot of libs went missing from /usr/local/lib. With libchk, last > locatedb I've been able to reinstall most of the libs. > My ~/ *seems* unaffected, but I'm worried about that, I don't notice > anything missing, but I could be wrong. > > What I'm thinking is the rm -rf found no 'cd' and moved to wipe out > /usr/local/lib =A0Would this be a correct assumption? > Yes, this is correct. Similarly, if you were to: rm -rf .mozilla /usr/local/lib It would remove your $HOME/.mozilla (assuming you were in $HOME) as well as /usr/local/llib. Your $HOME directory *should* be fine. Unless you had a 'cd' directory, of course. ;) --=20 Glen Barber
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad871310907221729i2e51429dy25c41ec44c9ef84f>