Linux Files Save Error: E325: ATTENTION [How to Solve]

Error Messages:

E325: ATTENTION
Found a swap file by the name “.server.properties.swp”
owned by: root dated: Thu Jan 1 12:02:39 2022
file name: /server.properties
modified: YES
user name: root host name: wang.localdomain
process ID: 10718 (still running)
While opening file “server.properties”
dated: Thu Jan 1  12:02:39 2022
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
Error: If this is the case, use “:recover” or “vim -r server.properties”
to recover the changes (see “:help recovery”).
Error: If you did this already, delete the swap file “.server.properties.swp”
to avoid this message.

 

Solution:

First use (individual tutorials have said that the deleted files are in the root directory, at least I didn’t find them)
ls -a
to see if there is a .swp file that opens with an error
For example, the one I opened with an error was server.properties
In this file directory use ls -a

Then use rm -f

Then the error report disappears.

Similar Posts: