linux出现e325错误,centos系统使用VI访问文件时候出现E325: ATTENTION类的错误提示处理方法...

错误出现情况的是,在我们用VI编辑文件时候在文件加载时候出现错误提示,需要在安任意键后才能正常编辑.

错误提示类似如下:E325: ATTENTION

Found a swap file by the name "/etc/sysconfig/.iptables.swp"

owned by: root   dated: Sun Mar 12 09:53:43 2017

file name: /etc/sysconfig/iptables

modified: YES

user name: root   host name: 64.242.55.116.broad.km.yn.dynamic.163da

process ID: 3443

While opening file "/etc/sysconfig/iptables"

dated: Sun Mar 12 09:55:13 2017

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 /etc/sysconfig/iptables"

to recover the changes (see ":help recovery").

If you did this already, delete the swap file "/etc/sysconfig/.iptables.swp"

to avoid this message.

"/etc/sysconfig/iptables" 22L, 879C

这种情况一般是由于在用vi编辑时候突然出现异常导致vi编辑终止导致的。例如 用SSL连接编辑时,断开。

处理方法:

通常出现这样的情况是因为之前操作中意外中断后系统在同级目录下生成了一个.开头的同名文件。

如上报错是在编辑防火墙配置文件时候出现的,在同级目录下生成了.iptables.swp的文件。只需要上了就额可以正常了。

删除命令:rm –f .iptables.swp

红色是生成的文件名字

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值