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 have removed the file by command line

rm -rf myScript.sh

How can I recover this file? Is there a way to recover from command line because these recovery tools take too much time scanning. I need to recover it immediately.

Thank you so much

share|improve this question
add comment

1 Answer

Unless you have a TimeMachine backup or other backup of the file, it's gone. If you know the exact content of part of the file, you might be able to find it, but rm doesn't have any sort of "recycle bin" from which you can recover the things it removes.

share|improve this answer
    
at the moment, i haven't used TimeMachine backup. Is there another way to fix it ? –  minhcat_vo Sep 14 '12 at 15:30
3  
@minhcat_vo: If you don't have a backup and you don't have the time to run file-recovery tools, your file is gone. –  RedGrittyBrick Sep 14 '12 at 16:14
add comment

protected by Community Dec 10 '12 at 9:49

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.