vim故障問題

wKioL1mNchSQ-TYGAAEBT1E6Nn0262.png-wh_50

E325: ATTENTION ###請注意vim

Found a swap file by the name"/etc/.services.swp"session

#找到了一個臨時文件/etc/.services.swpide

         owned by: root   dated: Thu Aug 1011:23:38 2017ui

         filename: /etc/servicesthis

         modified: nospa

         username: root   host name: oldboyedu39blog

       process ID: 42359 (still running)get

While opening file "/etc/services"it

            dated: Wed Aug  9 11:38:27 2017io

 

(1) Another program may be editing the samefile.  If this is the case,

    becareful not to end up with two different instances of the same

    file whenmaking changes.  Quit, or continue withcaution.

(2) An edit session for this file crashed.

    If thisis the case, use ":recover" or "vim -r /etc/services"

    torecover the changes (see ":help recovery").

    If youdid this already, delete the swap file "/etc/.services.swp"

    to avoidthis message.

 

Swap file "/etc/.services.swp" alreadyexists!

#找到一個/etc/.services.swp臨時文件

#請問要如何處置

[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit,(A)bort:

(E)ditanyway繼續編輯原文件,忽略剛剛醉的修改

R)ecover根據臨時文件恢復我剛剛編輯的內容

解決:[root@oldboyedu39 ~]# \rm rf /etc/.services.swp

相關文章
相關標籤/搜索