Originally Posted by dubz 444
the unix method of grep-ing . its works sort of...
sort-of is right. It is brilliant for anything text related or if you know your target. But a long arduous task for general file recovery... especially compressed, encrypted, or binary files. You really have to know your stuff, and it's hard to automate.
There are also a range of "forensic" distros around (another google search term) which can do better.
rm -rf is, of course, one of those commands you do not use
. Data recovery is what the trash bin is for.
Some people make a trash directory for CLI use, and a script in their path called "can" or something. All "can <filename>" does is move the offending file to the trash directory. (Though you can also rig something to clear the trash directory when you logout or some other condition is met).