LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get back removed files? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-back-removed-files-521245/)

JimBass 01-21-2007 09:00 PM

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

Matir 01-21-2007 09:03 PM

Quote:

Originally Posted by JimBass
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

Of course, that only works if you're using it before the files get blown away. Just for the record. :)

sacoskun 01-22-2007 01:51 PM

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,

wahming 01-22-2007 10:34 PM

Just remember - use shred for sensitive files, rm means they're gone, but recoverable

uselpa 01-23-2007 12:45 AM

Quote:

Originally Posted by wahming
Just remember - use shred for sensitive files, rm means they're gone, but recoverable

depends on the file system - read the man page


All times are GMT -5. The time now is 02:34 AM.