Open the Vi editor and the E325: ATTENTION solution appears.
Do not worry when the following prompt appears when opening the Vi Editor
E325: ATTENTION
Found a swap file by the name "/etc/. profile. swp"
Owned by: root dated: Wed Jul 14 10:01:10 2010
File name:/etc/profile
Modified: YES
User name: root host name: zhaoyang-laptop
Process ID: 1934
While opening file "/etc/profile"
Dated: Thu Apr 29 20:18:30 2010
(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.
If this is the case, use ": recover" or "vim-r/etc/profile"
To recover the changes (see ": help recovery ").
If you did this already, delete the swap file "/etc/. profile. swp"
To avoid this message.
"/Etc/profile" 28 lines, 497 characters
Press ENTER or type command to continue
E325: ATTENTIONFound a swap file by the name "/etc /. profile. swp "owned by: root dated: Wed Jul 14 10:01:10 2010 file name:/etc/profile modified: YES user name: root host name: zhaoyang-laptop process ID: 1934 While opening file "/etc/profile" dated: Thu Apr 29 20:18:30 2010 (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. if this is the case, use ": recover" or "vim-r/etc/profile" to recover the changes (see ": help recovery "). if you did this already, delete the swap file "/etc /. profile. swp "to avoid this message. "/etc/profile" 28 lines, 497 charactersPress ENTER or type command to continue
Press enter to enter the vi editor and enter q! Exit the vi Editor, enter rm-f/etc/. profile. swp on the terminal, and enter the vi editor again to find that the previous prompt disappears.
==============================
Summary: There are two simple operations: (1) ls-a lists all the content (2) rm corresponding. swp file.
Linux Vi replacement character command operation instance
Vi syntax highlighting settings
Introduction to using the Vi editor in Linux
Linux Vi replacement character command operation instance
For more information about Vi, see: