[ale] help with rm (yes, I'm embarrassed about this)

Geoffrey esoteric at 3times25.net
Thu Nov 25 13:38:10 EST 2004


Tejus Parikh wrote:
> Something that I find helps to avoid major mishaps is having a file 
> named "-i" in all important directories (ie ones that you don't 
> completely clean out that often). I have it in /home and / along with
> a few other choice places.  Creating such a file is as simple as
> "touch -- -i"
> 
> It's not 100% foolproof, rm -rf -- * will still screw you over, but
> it will save you from the accidental late night, low coffee, or high
> BAC mistake.

Personally, I have a problem with this approach.  First of all, learn to 
use the commands properly.  Second, backup your critical data.

What happens when you've gotten used to relying on the file named '-i' 
and you happen to be using someone else's computer?  Oops.

-- 
Until later, Geoffrey



More information about the Ale mailing list