Kate did something crazy for the first time & deleted all text on a save file

It seems that you do not understand what @knurpht , I and several other people here think a backup is.

A backup is a copy of (important to the user and/or system manager)) files. Made on a regular base (every hour/day/week) to a another place (file system on the same disk, another disk, another system, in the cloud). This to have a copy for recovery after a disaster ( file lost by stupid action, broken disk, burned down house). It is strongly recommended to have to users/system managers of computers (Windows, Linux, main frames) of every kind (home, company, service providers).

Many people assume that some mechanism to implement such a thing (backup and recovery policy) is in place. And thus a message “recover from your backup”, is about the same as saying “I see no other ways to solve your data loss problem”.

So this talking about “backup” has no relation to Kate, it only points you to the general backup you should have.

So this is what came up, nothing really.

emilyg@localhost:~> find . -name *kate-swp -ls
emilyg@localhost:~> find . -name *zupdate -ls
emilyg@localhost:~> ls -al ./Desktop/updates
ls: cannot access './Desktop/updates': No such file or directory
emilyg@localhost:~>

Well, that’s because the filename “zupdate.txt” is on MY system … that is a “test filename” I created to show how Kate creates the “*kate-swp” backup file and the default location.

I also created the “updates” sub-directory in my Desktop sub-directory. I wanted to isolate the test file, and the Kate backup file, in its own dedicated sub-directory (to avoid showing a bunch of files that are irrelevant).

So, given the above explanation:

  1. executing “find . -name *kate-swp -ls” on your system is what you want.
  2. executing “find . -name *zupdate -ls” on your system is probably not going to NOT find any files … (that’s a filename on MY system)
  3. executing “ls -al ./Desktop/updates” on YOUR system will most likely NOT show anything (unless you also have a “~/Desktop/updates” sub-dir).

For #2, you need to replace the filename with the name YOU NEED to find. (“find . -name *yourFilename -ls”)

Clearly the OP doesn’t have a backup, or they would have just restored the file from it rather than asking how to recover the lost file.

So let’s move on from this line of ‘help’. That horse has left the barn.

1 Like