Re: rm -r /usr/local by mistake

From: Chris Menzel (cmenzel_at_remove-this.tamu.edu)
Date: 06/14/05


Date: 14 Jun 2005 03:59:58 GMT

On Tue, 14 Jun 2005 03:05:01 GMT, Bill Vermillion <bv@wjv.com> said:
> In article <slrndardh3.12st.cmenzel@philebus.tamu.edu>,
> Chris Menzel <cmenzel@remove-this.tamu.edu> wrote:
>>On Sun, 12 Jun 2005 21:52:16 -0400, Chris F.A. Johnson
>><cfajohnson@gmail.com> said:
>>> On 2005-06-12, Chris Menzel wrote:
>>>> On 12 Jun 2005 11:34:14 -0700, de08 <de08jze@lycos.de> said:
>>>>> I did a stupid mistake and deleted (of courdse rm -r )the folder
>>>>> /usr/local/ on 5.4-RELEASE FreeBSD.
>>>
>>>> You might might consider aliasing "rm" to "rm -i" so you get a warning
>>>> before you blow a dir away. You can always avoid the warning with "\rm -i"
>>>> if you're sure.
>>>
>>> I would suggest that that is more dangerous than anything. Relying
>>> on non-standard behaviour, which may not be in effect on another
>>> user's login, or on another machine, is asking for trouble.
>
>>I withdraw the suggestion. Arguably, rm's default behavior should have
>>been that of "rm -i"; but it's not, so point taken.
>
> I disagree on that. rm should not default to -i. You just have to
> remember the power of rm.

I'm willing to be convinced otherwise, but I guess I don't see much
difference between remembering its power, given rm's current behavior,
and remembering a flag to get the same effect (were rm to default to
-i).

> When doing wild card removeable use an 'ls' with the arguments, and if
> it looks right, use command line editing to change it to rm.

That works too. :-)

-cm



Relevant Pages

  • Re: Nuclear Power - the only answer.
    ... Some of those who disagree with you have thought ... those who are for and those who are against nuclear power. ... have never checked my views on the overall production of electrical power. ... carry a risk by the very nature of being a fuel. ...
    (soc.culture.scottish)
  • Re: Trouble in Paradise
    ... Old Man, pay attention to Gino! ... A harmless suggestion for The Old Man would be to check for a BIOS update ... the video card with power on. ... it is best to unplug the computer ...
    (microsoft.public.windows.mediacenter)
  • Re: Atheists: Americas most distrusted minority
    ... We'll have to agree to disagree on that one. ... fence may have good reasons for being there. ... the power structures. ...
    (rec.arts.sf.tv.babylon5.moderated)
  • Re: Update to Sky+ drive replacement / imaging
    ... >>> Sounds to me like it could also be a data transfer issue, ... Which is why I think it's less plausible than it being a power thing. ... why I dispute the suggestion, is simply because the symptoms I ... reason - for the supporting arguments I've given. ...
    (uk.tech.tv.sky)
  • Re: META (but otherwise OT): Randy Hirsch
    ... few power mongers out there (like Oral Roberts University and First Baptist ... I remember 30-something years ago, Baxter County, AR was holding an election ... In the end, the churches lost... ... I vehemently disagree. ...
    (misc.transport.road)