Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
You can't use grep to undelete files. – mouviciel Sep 23 '10 at 11:44
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) – o0'. Feb 4 '11 at 11:29

Your Answer


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.