Open the Vi editor and the E325: ATTENTION solution appears.

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.