I suspended my laptop while writing some files in gedit. When I opened my laptop, it suddenly went off and lost the files I had open in the text editor. How can I recover those files?

enter image description here

I have tried using the terminal, and I have tried Nautilus, but I can't even access Nautilus on my Ubuntu 14.04.

By default, the text editor (Gedit) does not autosave documents unless you manually saved them at least once beforehand. So if you didn't save your file, it's lost, unfortunately.

If you did save your file, the newer autosaved copy is in the same place as where you saved the file, but with "~" appended. This is a hidden file, so enable "Show hidden files" in the file manager (Ctrl + H), or use ls -a in the terminal to see it.

  • But i saw , autosave of the copy of each file you open on text editor – Jay Jul 5 '16 at 10:30
  • @Jay I don't understand what you mean by this, could you clarify ? – JonasCz Jul 5 '16 at 10:35
  • Kindly please see my question, i just added a picture of what i am trying to tell you , it was just like that , it displayes " save backup copy of files or something" @jonazCs – Jay Jul 5 '16 at 10:46
  • when i check the hidden files on my system , it didnt find the copy of my lost file – Jay Jul 5 '16 at 10:46
  • 1
    What Jonas said is that the files are not auto-saved before you don't save them manually for the first time. I fear your work is lost... – Neni Jul 5 '16 at 10:56

There is an issue opened for the feature of saving drafts, but it has not yet been resolved.

You could try to use this plugin.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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