On Wed, Jun 28, 2000 at 10:54:41AM -0400, Suzanne Hillman <[EMAIL PROTECTED]> 
wrote:
> On Wed, 28 Jun 2000, Bob Bell wrote:
> >     FWIW, I only commented because I just noticed last week that AdvFS
> > (on Tru64 Unix) let you do 'mktrashcan' to save deleted files,
> > although I don't think it's normally used.
> 
> I recently ran into a version of RedHat (I think it was 6.2, but I *know*
> the vendor who sent the equipment changed things) which had the rm command
> replaced with a command that saved things to a trashcan instead of
> deleting them.
> 
> I think I proceeded to alias the rm command to their command (destroy, I
> think) which actually acted like rm is supposed to.

    Having a trashcan at the file system level is much different that
even MS Windows' Recycle Bin (don't know about the Mac).  In Win9x,
if you delete a file in certain ways it won't move to the recycle bin.
With your mentioned rm command, if a program uses unlink() to delete a
file, it will be gone for good.

    However, AdvFS trash can works at the fs level, so that all files
deleted with the unlink system call will be put into the trashcan.
This should catch most, if not all, files.  File of the same name will
overwrite each other, though.  You restore a file by mv'ing it out.

    I don't use it, but it sounded interesting to hear about a
trashcan on a UNIX file system.

-- 
Bob Bell                Compaq Computer Corporation
Software Engineer       110 Spit Brook Rd - ZKO3-3/U14
TruCluster Group        Nashua, NH 03062-2698
[EMAIL PROTECTED]     603-884-0595

**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to