disaster recovery - did I do the right thing?

Garrett Cooper youshi10 at u.washington.edu
Sun May 6 01:09:59 UTC 2007


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


More information about the freebsd-questions mailing list