Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.