LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-17-2023, 02:00 PM   #1
anthonyforwood
LQ Newbie
 
Registered: Dec 2022
Location: Vancouver, BC
Distribution: Ubuntu 22.04.03 LTS w/ Gnome 42.9 and X11
Posts: 29

Rep: Reputation: 1
Question How To Retrieve Program Data in Memory?


Almost every program stores what you write and then change or delete so that continuously pressing Ctrl-Z will restore everything you've changed or deleted up to a certain point. This means that each program that does this keeps a history of these changes, at least until you close the editing window you were working in.

I keep losing data in some programs that I spent a lot of time writing something by accidentally closing the editing window unless I save it to a text editor first, or a bug causes the program or my computer to freeze.

Is there any way to access that editing history if the program is still running and I just closed the editing window accidentally? I've since installed a clipboard history app but I'm trying to retrieve data from before I installed it, so it doesn't help in this case.

Any suggestions?
 
Old 11-17-2023, 03:53 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Some text editors have a .cache file that is left if the editor is not closed properly.

, maybe ~.kate-swp

or same directory you were working... .kate-swp

I hope this helps you progress.
 
Old 11-17-2023, 04:29 PM   #3
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Text editing widgets are only for entering small amounts of text.

Compose large amounts in a real text editor. Save it as needed. When you are done, copy-paste the text into your web browser or other application.
Ed
 
Old 11-17-2023, 09:03 PM   #4
anthonyforwood
LQ Newbie
 
Registered: Dec 2022
Location: Vancouver, BC
Distribution: Ubuntu 22.04.03 LTS w/ Gnome 42.9 and X11
Posts: 29

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by GlennsPref View Post
Some text editors have a .cache file that is left if the editor is not closed properly.

, maybe ~.kate-swp

or same directory you were working... .kate-swp

I hope this helps you progress.
I was using an editor in an online social media site. I'm not sure what directory I was in at the time, but probably Home/. I always have hidden directories and file visible in the GUI (using Ubuntu 22.04 w/ Gnome), and I've never seen a .kate-swp.

BTW, I never said I was using a text editor. I said it happened in a text window in a program.
 
Old 11-17-2023, 09:14 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,654

Rep: Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708
Quote:
Originally Posted by anthonyforwood View Post
I was using an editor in an online social media site. I'm not sure what directory I was in at the time, but probably Home/. I always have hidden directories and file visible in the GUI (using Ubuntu 22.04 w/ Gnome), and I've never seen a .kate-swp.

BTW, I never said I was using a text editor. I said it happened in a text window in a program.
While the advice is good for text entry as described, it is even BETTER advice when you are talking an over complicated web site with "issues"! Social Media sites are less than optimal. They are only great at collecting and protecting the data you DON'T want them to have!
 
Old 11-17-2023, 09:20 PM   #6
anthonyforwood
LQ Newbie
 
Registered: Dec 2022
Location: Vancouver, BC
Distribution: Ubuntu 22.04.03 LTS w/ Gnome 42.9 and X11
Posts: 29

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EdGr View Post
Text editing widgets are only for entering small amounts of text.
Ed
Are you sure about that?
 
Old 11-17-2023, 09:52 PM   #7
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Quote:
Originally Posted by anthonyforwood View Post
Are you sure about that?
Yes. Text editor widgets would have a "save" button if they had been intended for more input.
Ed
 
Old 11-17-2023, 10:27 PM   #8
anthonyforwood
LQ Newbie
 
Registered: Dec 2022
Location: Vancouver, BC
Distribution: Ubuntu 22.04.03 LTS w/ Gnome 42.9 and X11
Posts: 29

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by wpeckham View Post
Social Media sites are less than optimal. They are only great at collecting and protecting the data you DON'T want them to have!
No doubt about that! It all starts with entering your email address or phone number.
 
Old 11-17-2023, 10:47 PM   #9
anthonyforwood
LQ Newbie
 
Registered: Dec 2022
Location: Vancouver, BC
Distribution: Ubuntu 22.04.03 LTS w/ Gnome 42.9 and X11
Posts: 29

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EdGr View Post
Yes. Text editor widgets would have a "save" button if they had been intended for more input.
Ed
Most text windows I've used DO have a save button. You say 'widget' while I'm talking about text windows. What you refer to would include text boxes in larger programs like Libre Writer. Even this text window I'm using here has a save button (Submit Reply).

Text windows can usually also handle relatively large amounts of data using Ctrl-Z / Shift-Ctrl-Z. This one does (just tested with a text file of 3920 characters I pumped in).
 
Old 11-18-2023, 12:19 AM   #10
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
The "Submit Reply" button won't work if the network connection has been lost.

The text editor widget in your web browser and dialog boxes is a GtkTextView. Some websites add a Javascript editor. Neither of these is a substitute for a text editor with local storage.

You have exhausted my patience in only three posts. Just use the right program. The computer will work better.
Ed
 
Old 11-18-2023, 04:56 AM   #11
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled
If planning to enter a lot of text online, write it in an editor on your machine, copy & paste it into the online program, when you have written it all.
 
Old 02-01-2024, 08:49 AM   #12
anthonyforwood
LQ Newbie
 
Registered: Dec 2022
Location: Vancouver, BC
Distribution: Ubuntu 22.04.03 LTS w/ Gnome 42.9 and X11
Posts: 29

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EdGr View Post
The "Submit Reply" button won't work if the network connection has been lost.

The text editor widget in your web browser and dialog boxes is a GtkTextView. Some websites add a Javascript editor. Neither of these is a substitute for a text editor with local storage.

You have exhausted my patience in only three posts. Just use the right program. The computer will work better.
Ed
Have you recuperated yet?

I can just as easily lose my patience when someone responds to my question like you did and tells me one thing after another that's false and are so busy assuming the wrong things that you quickly exhausted yourself and are trying to blame it on me, and I feel justified to defend myself here instead of letting you blame me for your own mistakes while continuing to make more in this last response from you, all because you had a problem from the beginning in comprehending my OP. These new mistakes deserve being pointed out, and I can only hope that you'll accept your own faults and learn not to make the same kind of errors in the future. That will require you to slow down and read what's being asked, and not pretend that you know things you obviously don't.

1) I never said anything about losing a network connection, so you shouldn't assume that has anything to do with what I asked about in my OP.

2) I didn't say the problem was with my web browser either. I said in my OP that the problem has occurred with many of the programs I use, and in a later comment to someone else I said that the problem recently occurred on a social media site.

3) Web browsers don't typically have text editors built into them.

Now stop trying to answer questions that are beyond your ability to answer and do a few breathing exercises before you go into cardiac arrest.
 
Old 02-01-2024, 08:58 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,650

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by anthonyforwood View Post
Have you recuperated yet?
I can just as easily lose my patience when someone responds to my question like you did and tells me one thing after another that's false and are so busy assuming the wrong things that you quickly exhausted yourself and are trying to blame it on me, and I feel justified to defend myself here instead of letting you blame me for your own mistakes while continuing to make more in this last response from you, all because you had a problem from the beginning in comprehending my OP. These new mistakes deserve being pointed out, and I can only hope that you'll accept your own faults and learn not to make the same kind of errors in the future. That will require you to slow down and read what's being asked, and not pretend that you know things you obviously don't.

1) I never said anything about losing a network connection, so you shouldn't assume that has anything to do with what I asked about in my OP.
2) I didn't say the problem was with my web browser either. I said in my OP that the problem has occurred with many of the programs I use, and in a later comment to someone else I said that the problem recently occurred on a social media site.
3) Web browsers don't typically have text editors built into them.

Now stop trying to answer questions that are beyond your ability to answer and do a few breathing exercises before you go into cardiac arrest.
Based on the replies here, it would appear that the answers are beyond your ability to understand. Because:
  1. You never said what program(s) you were using, and didn't provide necessary information when asking. Where data/files are saved is far different for a website than it would be for any programming editor. Did you expect us to guess?
  2. You say "many of the programs" (which ones??) and if your computer freezes/crashes/reboots, not sure how you'd expect things to be saved somehow.
  3. Right, they don't, yet your problem seems to center around your comment of "I was using an editor in an online social media site".
Fatmac gave the correct advice, since entering information to an online site doesn't 'save' data in memory, but locally run editors do have cache files (which is how they CAN have an undo feature).
 
Old 03-30-2024, 11:12 PM   #14
friendlysalmon8827
Member
 
Registered: Dec 2023
Distribution: Anfroid,Debian
Posts: 99

Rep: Reputation: 5
It could also be a plugin issue. I've ran into this type of occurrence and all that was required of me was to deactivate one or two plugins and hey presto the problem was fixed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve CPU, Disk and Memory utilization in linux userspace code NilesBor Linux - Kernel 2 06-17-2009 08:27 AM
Command to retrieve the amount of memory on the video card walple Linux - Hardware 2 10-10-2006 03:57 PM
Can I retrieve my data lost after installing Linux? alanell712 Red Hat 6 03-05-2006 06:35 AM
Very urgent! Need to retrieve some data! Help bikov_k General 2 10-16-2004 06:51 AM
why was my rh9.0 broken ,and how to retrieve the data on linux? ledone Linux - Newbie 3 07-25-2004 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration