This topic was covered a little bit in a book I was given called "Wicked Cool Shell Scripts" by Dave Taylor. He has a shell script that modifies the rm command to move things to a holding directory through rm rather than actually deleting them. Basically, it works the same way the recycle bin does in greatly inferior operating systems.
I won't print the whole script out here, as there may be some copywrong issues with doing so, but it is short, and can be found in its entirety at http://www.intuitive.com/wicked/show...i?015-newrm.sh Peace, JimBass |
Quote:
|
Thanks all of you for your great help.
I started to use a script that moves the files to a "~/recycleBin/" directory when I type "del" and I use "del" command to delete files and I'll also let "rm" command to be available for certain deletes:) I had backup for the first time and this was not a problem, I feel lucky. Thanks again, |
Just remember - use shred for sensitive files, rm means they're gone, but recoverable
|
Quote:
|
All times are GMT -5. The time now is 02:34 AM. |