There comes a time in every Unix user's life when he makes the mistake of typing "rm *" (or, if he's particularly unlucky, "rm -rf") -- the command to delete everything in a directory. For me, this time came today
( Read more... )
I find that having a script aliased in place of rm which moves files to a hidden folder in my home directory (or root's directory) that gets purged at logoff saves me this kind of trouble. If I really want to delete it, then I can just specify the hard path to rm to truly delete it. It's stopped me from making this same mistake - and I've done it at least four times now, especially when I've had the intent of rm -rf *.mp3 from my storage partition (I'd copied my music onto my iPod) and instead hitting enter prematurely and removing half the hard drive before I noticed what was going on.
I avoid "rm -rf " especially with a wildcard somewhere in the criteria my habit is about the same as minnek's, I just "mv" the files to somewhere to permanent deleting later using an absolute pathname.
Comments 4
Here's hoping it's recoverable.
Reply
http://linuxappfinder.com/package/testdisk
Not sure if either of these will help you, but...
Reply
my habit is about the same as minnek's, I just "mv" the files to somewhere to permanent deleting later using an absolute pathname.
Reply
Reply
Leave a comment