Date: Sat, 05 May 2007 18:10:36 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-questions@freebsd.org, ray@stilltech.net Subject: Re: disaster recovery - did I do the right thing? Message-ID: <463D2B0C.2030603@u.washington.edu> In-Reply-To: <20070506005530.GA5251@glitch.rwxrwxrwx.net> References: <200705051705.43504.ray@stilltech.net> <20070506005530.GA5251@glitch.rwxrwxrwx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Martin Tournoij wrote: > On Sat 05 May 2007 17:05, Ray wrote: >> Hello all, >> I did something stupid the other day (sleep deprivation combined with >> a "clever" hack were the main reasons), and I'm just curious if I did the >> right thing afterwards. >> >> The mistake: >> /usr/local/# rm -f * >> note that root was running bash as a shell at the time, found >> in /usr/local/bin or something. >> >> What I did was to start over, reinstall from scratch. >> my question, was there an easier way? >> thanks, >> Ray > > You can use pkg_info -ga to check for missing files in your packages. > For (t)csh: alias rm "rm -i" For (ba)sh: alias rm="rm -i" Now that you've learned :). Martin's suggestion is good though -- would have done that considering that all that lived in /usr/local were ports. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?463D2B0C.2030603>