Guy Gardoit schrieb:
Hmmm.  Makes me wonder if in Unix there is an "recycle bin" equivalent for
the "rm" command.

no. KDE, GNOME, XFCE and so on have a recycle bin implemented, wich only
works if files are "deleted" with the filemanager of the desktop
environment (--> KDE, GNOME, etc).


But there is a rather cool library called "libtrash" which can be used.

This library hooks the remove() and unlink() functions of the libc. So
whenever an application deletes a file, the libtrash will get informed
about this and move the file to a recycle bin directory.....


Works at least for Linux, no idea if it works for AIX, SunOS, HP-UX or
whatever....



Bye,
Michael





--
Mit freundlichen Grüßen

Michael Knigge
Entwicklung


S.E.T. Software GmbH
Lister Straße 15
30163 Hannover

Tel.  +49 511/3 97 80-23
Fax   +49 511/3 97 80-65
[email protected]

Handelsregister: HRB52778 Amtsgericht Hannover
Geschäftsführer: Till Dammermann, Klaus Stöhr

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to