[olug] Unix Tip: OOPS.. RM STAR

Andrew Holm-Hansen olug at einer.org
Mon Apr 28 18:57:11 UTC 2003


instead of invoking rm your alias would invoke mv with the target being
your recycle directory.  Something along the lines of:

alias rm='mv --target-directory=/recylcebin'

does the trick.

Andrew

I imagine.
On Mon, 2003-04-28 at 12:09, Joe Catanzaro wrote:
> 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
> 
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list