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

Error Messages:

Found a swap file by the name “”
owned by: root dated: Thu Jan 1 12:02:39 2022
file name: /
modified: YES
user name: root host name: wang.localdomain
process ID: 10718 (still running)
While opening file “”
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”
to recover the changes (see “:help recovery”).
Error: If you did this already, delete the swap file “”
to avoid this message.



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
In this file directory use ls -a

Then use rm -f

Then the error report disappears.

Similar Posts: