*- Andy Spiegl wrote about "Safe rm available?" | Since 'rm' can be pretty dangerous sometimes, especially to new unix users, | I was wondering whether there is something like a "save rm" out there. | | With feature similar to this list: | - moving files to /tmp/trash instead of unlinking (saving full path) | - configuration file with regexps listing files | + that can't be rm'ed | + that shouldn't be rm'ed (ask for confirmation) | | I didn't search the entire internet yet, but at least I couldn't find | any debian packages. | | Anyone? |
I am using a program called safedelete that you alias to rm. It is not a Debian package but is found on Sunsite. It saves the files in a directory in your home directory for a configurable amount of days. >From the safedelete-1.3.lsm Begin3 Title: SafeDelete - safely delete and undelete files Version: 1.3 (new release) Entered-date: 07NOV95 Description: SafeDelete is a set of utilities which is meant to enhance the rm command. Files which are removed with the safedelete command can be recovered with the undelete command. Files can be undeleted using either a command line or full screen ncurses interface. Keywords: shell utility safedelete undelete rm Author: [EMAIL PROTECTED] (Jeff Renicker) Maintained-by: Primary-site: sunsite.unc.edu /pub/Linux/shell/utils 81k safedelete-1.3.tar.gz Alternate-site: Original-site: Platforms: Linux with ncurses (Sys V curses, not BSD) Copying-policy: Freely redistributable. I just request that any modifications be forwarded to me for inclusion in future releases. End There is a Debian developer that is working a new program that does what you want. I think it will use the unlink libraries to be transparent to the user and save the file in a 'wastebasket' type of folder. I don't think this is much more than thought right now though. Hope this helps, -- Brian --------------------------------------------------------------------- "Never criticize anybody until you have walked a mile in their shoes, because by that time you will be a mile away and have their shoes." - unknown Mechanical Engineering [EMAIL PROTECTED] Purdue University http://www.ecn.purdue.edu/~servis ---------------------------------------------------------------------