I have created a document and have not saved it yet. The gedit has become unresponsive. Is there anyway I can save or get the content of my file before killing the process?
Asked
Active
Viewed 1,395 times
2 Answers
1
gedit will create a backup file called filename~
in the same folder as the edited file. It will contain the contents before last save. If you have saved the file during edit it may contain at least a part of the contents

hek2mgl
- 152,036
- 28
- 249
- 266
-
1I did not have it saved! any solution? – ComeRun Jun 23 '13 at 23:42
-
unfortunately not. except from making a screenshot. sorry – hek2mgl Jun 23 '13 at 23:43
-
2when the contents aren't saved, they only exist in the memory space of the gedit process. It is by design that no other processes can access this memory regions. Only the gedit process which is hanging or the kernel could access this memory. You can try to obtain a core dump: http://serverfault.com/questions/173999/dump-a-linux-processs-memory-to-file – hek2mgl Jun 23 '13 at 23:52
-
Another idea would be to stop gedit from hanging. are you able to obtain the pid of gedit? – hek2mgl Jun 23 '13 at 23:52
-
when I ps it I get some pid but im not sure if they are the right ones. so what do u suggest to stop it from hanging? – ComeRun Jun 23 '13 at 23:55
-
let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/32247/discussion-between-hek2mgl-and-comerun) – hek2mgl Jun 23 '13 at 23:57
0
You might have to start gedit as root and then save your file.
Then you could do $gedit filename
and try to save it.

Evin1_
- 12,292
- 9
- 45
- 47