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.

how can I use the grep command in termainal to undelete my text file?

share|improve this question
6  
You can't use grep to undelete files. –  mouviciel Sep 23 '10 at 11:44

1 Answer 1

up vote 5 down vote accepted

First, stop working with the disk containing your textfile. Boot from another system.

Then, You can try:

share|improve this answer
    
PhotoRec looks great! (if you don't mind a ncurses-like interface) –  Lohoris Feb 4 '11 at 11:29

Your Answer

 
discard

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

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