I did

$ sudo python

dir="bla/python2.6/dist-packages"

file="bla1.egg"

import shutil

shutil.rmtree(dir)

...oops I should have done shutil.rmtree(file)

The files didn't go to the trash first. They're gone. Where did they go? I've been searching for them with programs like Scalpel. These programs only seem to work with particular files, not a whole parent folder and all that was included in it.

I'm on ubuntu 10.10. I have as yet not touched anything. Is there a simple undo, or am I in for a world of hurt?

P.S. Is there no safety net type stuff for this in Ubuntu?

link|improve this question
Which file system? ext3/ext4/reiserfs? – TiCL Aug 30 '11 at 8:18
see superuser.com/questions/170857/ext4-undelete-utilities if it is ext4 or ext3. – MaQleod Aug 30 '11 at 8:21
4  
Regarding your P.S.: You are expected to know what you're doing, especially as root. – Daniel Beck Aug 30 '11 at 8:27
daniel yes, but i would expect the best to make mistakes – ragingbull Aug 30 '11 at 8:42
how do i find out what file system i have – ragingbull Aug 30 '11 at 8:43
show 3 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.