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. Anyone have something like this hanging around their system somewhere?
How about making sure you have a directory called ~/.Trash and then making a script like...
#!/bin/bash mv $@ ~/.Trash exit 0 And then... put this in ~/bin/rm And then alias rm="~/bin/rm" to make sure you use that one(Or make sure ~/bin is first in your path, or just call /home/user/bin/rm explicitly.)
Angelo