mac命令行:E325: ATTENTION

E325: ATTENTION
Found a swap file by the name ".bash_profile.swp"
          owned by: root   dated: Fri Aug 25 16:23:42 2017
         file name: ~root/.bash_profile
          modified: no
         user name: root   host name: h********deMacBook-Pro.local
        process ID: 5025 (still running)
While opening file ".bash_profile"

(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 .bash_profile"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".bash_profile.swp"
    to avoid this message.

非正常关闭vi编辑器时会生成一个.swp文件(临时文件以备不测,若断电或者ctrol+zz会保存下来)

正常退出shift+zz

你可能感兴趣的:(Linux)