bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request: rm option that supports trash (plain text)


From: Steve Ward
Subject: Re: Feature request: rm option that supports trash (plain text)
Date: Wed, 6 Feb 2008 18:56:58 -0500

On Feb 5, 2008 12:59 PM, Bob Proulx <address@hidden> wrote:

> Wilfred wrote:
> > It would be great if rm supported moving a file to a freedesktop.org
> > compliant trash folder. This woud save much heartache by giving a
> > 'safer' option for newbies.
>
> This is easily done.  Simply create an alias that moves the file
> instead of removing it.
>
>  alias rm="mv --target-directory=$HOME/.Trash/"
>
> But please don't make this a system default since this behavior is not
> appreciated by many.
>
> Bob
>
>
> _______________________________________________
> Bug-coreutils mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-coreutils
>


Additionally, I use the --backup option to prevent overwriting existing
files & folders in the trash (in order to be similar to the "Recycle Bin"
behavior).

# my del
alias del='mv --verbose --backup=simple --suffix=$(date +".(%F_%T)")
--target-directory=$HOME/.Trash/'


Steve


reply via email to

[Prev in Thread] Current Thread [Next in Thread]