Linux意外断开出现E325: ATTENTION的解决办法

发布于 分类 Linux

1天前 有1个用户阅读过

在编辑文件时,如果服务器的连接意外断开(也就是不正常退出),下次重新编辑该文件时就会出现类似提示

E325: ATTENTION
Found a swap file by the name".profile.swp"
          owned by: smaranh   dated: Fri Apr  6 09:46:45 2012
         file name: ~smaranh/.profile
          modified: YES
         user name: smaranh   host name: ubuntu
        process ID: 4394
While opening file".profile"
             dated: Fri Apr 27 10:35:32 2012
      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 .profile"
    to recover the changes (see":help recovery").
    If you did this already, delete the swap file".profile.swp"
    to avoid this message.
".profile" 23 lines, 713 characters
Press ENTER or type command to continue

解决办法很简单,直接删除提示存在的文件即可,然后就可以重新编辑了,比如示例上面的提示中引号的内容,Found a swap file by the name".profile.swp"

[root@localhost ~]# rm .profile.swp 

-- The End --

本文标题: Linux意外断开出现E325: ATTENTION的解决办法

本文地址: https://seonoco.com/blog/e325-attention

点赞 0
感谢支持
0
多谢反馈
评论 0
打赏

支持微信/支付宝

评论

网友