On Tue, Jan 23, 2007 at 02:06:02PM -0500, Tony Heal wrote: > That does not work to well in an automated script, but thanks >
what doesn't? oh, top-posting. please don't do that. > > > Tony Heal wrote: > > OK, how about some preventative stuff. If there is not real way to > 'undelete' files. How about adding a script named 'rm' that passes the same > switches to from the script to /bin/rm but moves the files to tmp before > deleting them. > I don't have one, but it would be trivial to write a bash script that takes an rm <arglist> <target> and turns it into a mv <target> /tmp/trash. simply alias rm to that script in bashrc et al. or, if you wanted system-wide "Trashing" you could mv the rm binary out of the way and symlink to your script. the implications of that could be huge though. A > > -----Original Message----- > From: Ron Johnson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 23, 2007 12:34 PM > To: debian-user@lists.debian.org > Subject: Re: undelete > > On 01/23/07 10:37, Tony Heal wrote: > > > Is there a way to recover deleted files? > > > > Maybe, if you are using FAT (highly unlikely) or ext2 (also highly > unlikely) and you pulled the plug as soon as you noticed what you did. > > Sadly, the standard answer, though, is, "No, you're SOL." > > > > > > You could always create an alias and make rm interactive by inserting the -i > option, hence rm would now become rm -i which would at least make you think > twice before actually deleting it? > > A >
signature.asc
Description: Digital signature