[Tfug] emulating a recycle bin

Matthew T. Eskes meskes at gmail.com
Mon Sep 29 23:57:34 MST 2008


Yeah, I'd have to agree with Christopher on that one. I would alias cp to cp
-i. Through the shell, that's really the only way to emulate a trashcan,
though now that I'm thinking about it I guess you could alias cp to
something like mv 'file' ~/trash_can or some such. Anyway, hope that helped.

Matt

-- The Founding Fathers struggled for the principle that man could and
should be trusted with his own destiny. Our current /domestic/ enemies,
against whom those Americans in uniform are sworn to defend, do not believe
in this principle, but we have again won a round in the endless fight
against them.
    
   -- Jeff Cooper on the assault weapons ban ending 

-----Original Message-----
From: tfug-bounces at tfug.org [mailto:tfug-bounces at tfug.org] On Behalf Of
Jeffry Johnston
Sent: Monday, September 29, 2008 11:42 PM
To: Tucson Free Unix Group
Subject: Re: [Tfug] emulating a recycle bin

There are several apps that can give you a console trash.  I even
wrote one myself, before realizing that those before me had already
done it, and done a much better job (handling the different file
systems, etc).  I can't recall the names of any right now, but search
around, you'll find 'em.  I used to run it all the time, but haven't
been lately.. not that there was anything wrong.. just forgot..  I
guess I've been more careful?

Jeff

On Mon, Sep 29, 2008 at 11:19 PM, Christopher Robbins
<robbinsc at gmail.com> wrote:
>
>
> On Mon, Sep 29, 2008 at 11:03 PM, christopher <skeptikos at gmail.com> wrote:
>>
>> hey, I just had an accident with a file. Well, I guess
>> when you typed in the command and confirmed the
>> override, you can't call it an accident, but anyway
>> it's deleted.
>>
>> Now it's not a file I can't replace because I had a
>> backup, but it made me do some searching and it seems
>> the only way to avoid really losing such a file is to
>> 'emulate a recycle bin'. Do any of you do this?
>>
>
> What if you tweaked your shell environment so that
> 'rm' was actually 'rm -i' (which forces you to confirm
> deletion before you actually delete) ?
>
> I know that's out of the spec, but it might help...I don't
> use an 'emulated recycle bin', but I do have a decent
> amount of backups to cover my ass in case I do
> screw up.  :)
>
>    - Chris
>
> --
> Christopher P Robbins
> Systems Programmer
> Department of English - University of Arizona
> 1423 East University Blvd.
> Modern Languages, Bldg. 67, Room 422
> Tucson, Arizona 85719
> Phone: (520) 621-3496
> Email: robbinsc at gmail.com
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>

_______________________________________________
Tucson Free Unix Group - tfug at tfug.org
Subscription Options:
http://www.tfug.org/mailman/listinfo/tfug_tfug.org





More information about the tfug mailing list