2013年10月21日 星期一

打開vi編輯器出現E325: ATTENTION的解決方法

E325: ATTENTION
Found a swap file by the name "/home/.backup.sh.swp"
          owned by: root   dated: Tue Oct 22 09:09:25 2013
         file name: /home/backup.sh
          modified: YES
         user name: root   host name: js-adways.com.tw
        process ID: 5807 (still running)
While opening file "/home/backup.sh"
             dated: Tue Oct 22 09:14:43 2013
      NEWER than swap file!

(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 /home/backup.sh"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/home/.backup.sh.swp"
    to avoid this message.
"/home/backup.sh" 36L, 1075C

解決方式 vi進去編輯按 :q! 退出vi 然後再到終端機輸入rm -f /home/.backup.sh.swp

沒有留言:

張貼留言