[olug] Unix Tip: OOPS.. RM STAR

Joe Catanzaro joecatanzaro at cox.net
Mon Apr 28 17:09:33 UTC 2003


I don't mean to sound like a windoze freak, but what about setting up an 
alias that just moves stuff to a "recycle bin?" And then if you need to 
recover it later, it's there. How would this be setup as an alias?


At 4/25/03 08:05 AM Friday, Dave Hull wrote:
>On Fri, 25 Apr 2003, Christopher Cashell wrote:
>
> > I take the middle road.  On my personal accounts, I dislike having 'rm'
> > aliased to 'rm -i'.  However, I think every root account should have it
> > done.
> >
> > It's a simple matter of scope.  If, as a user, I accidentally run rm *,
> > I can't hurt anyone but myself.  If it's my own system, it just means I
> > need to restore a backup.  However, if you're using the root account,
> > it's worth the inconvenience to make sure you don't screw things up.
>
>I agree completely. I should have been more specific. I always make sure root
>has rm aliased to rm -i. If I want to override that at the command line, I
>just use rm -rf.
>
>--
>Dave Hull
>http://insipid.com
>
>Suffering alone exists, none who suffer;
>The deed there is, but no doer thereof;
>Nirvana is, but no one is seeking it;
>The Path there is, but none who travel it.
>                 -- "Buddhist Symbolism", Symbols and Values
>
>_______________________________________________
>OLUG mailing list
>OLUG at olug.org
>http://lists.olug.org/mailman/listinfo/olug


Joe Catanzaro
joecatanzaro at cox.net



More information about the OLUG mailing list