Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .