linux网络配置出现E325,打开Vi编辑器出现E325: ATTENTION的解决方法

linux网络配置出现E325,打开Vi编辑器出现E325: ATTENTION的解决方法当打开Vi编辑器时出现以下的提示时不要着急E325:ATTENTIONFoundaswapfilebythename”/etc/.profile.swp”ownedby:rootdated:WedJul1410:01:102010filename:/etc/profilemodified:YESusername:roothostname:zh…

大家好,又见面了,我是你们的朋友全栈君。

当打开Vi编辑器时出现以下的提示时不要着急

E325: ATTENTION

Found a swap file by the name “/etc/.profile.swp”

owned by: root  dated: Wed Jul 14 10:01:10 2010

file name: /etc/profile

modified: YES

user name: root  host name: zhaoyang-laptop

process ID: 1934

While opening file “/etc/profile”

dated: Thu Apr 29 20:18:30 2010

(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/profile”

to recover the changes (see “:help recovery”).

If you did this already, delete the swap file “/etc/.profile.swp”

to avoid this message.

“/etc/profile” 28 lines, 497 characters

Press ENTER or type command to continue

E325: ATTENTIONFound a swap file by the name “/etc/.profile.swp”          owned by: root  dated: Wed Jul 14 10:01:10 2010        file name: /etc/profile          modified: YES        user name: root  host name: zhaoyang-laptop        process ID: 1934While opening file “/etc/profile”            dated: Thu Apr 29 20:18:30 2010 (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/profile”    to recover the changes (see “:help recovery”).    If you did this already, delete the swap file “/etc/.profile.swp”    to avoid this message.”/etc/profile” 28 lines, 497 charactersPress ENTER or type command to continue

我们按回车进入vi编辑器输入:q!退出vi编辑器,在终端输入rm -f /etc/.profile.swp回车,再一次进入vi编辑器发现以前的提示消失。

===================

总结一下:可以分2部简单的操作:(1)ls -a 列举所有的内容 (2)rm对应的.swp文件。

0b1331709591d260c1c78e86d0c51c18.png

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/144428.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • C语言关键字之voliate

    C语言关键字之voliateC语言关键字之voliatevoliate的作用是作为指令关键字,确保本条指令不会因为编译器的优化而省略,而且要求每次从内存中直接读取值当使用voliate声明变量值时,系统总是重新从它所在的内存读取数据,直接访问变量地址,而编译器对于访问该变量时也不再进行优化voliate关键字影响编译器的结果,用voliate声明的变量表示该变量随时可能发生变化(因为编译器优化时可能将其放入寄存器中),与…

    2022年5月6日
    70
  • 什么是代理服务器(Proxy)

    什么是代理服务器(Proxy)以类似代理人的身份去取得用户所需要的数据就是了!但是由于它的『代理』能力,使得我们可以透过代理服务器来达成防火墙功能与用户浏览数据的分析! 此外,也可以藉由代理服务器来达成节省带宽的目的,以及加快内部网络对因特网的WWW访问速度  17.1.1什么是代理服务器 我们或许会帮忙家人去办理一些杂务吧!举个例子来说,例如缴费或者是申办提款卡等等的,由于你并不是『

    2022年5月29日
    42
  • appscan激活成功教程版安装_appscan许可证管理在哪

    appscan激活成功教程版安装_appscan许可证管理在哪AppScan 是一个Web漏洞扫描程序,主要适用于Windows系统。该软件内置强大的扫描引擎,可以测试和评估Web服务和应用程序的风险检查,有助于防止破坏性的安全漏洞。1、安装实践环境

    2022年8月1日
    28
  • 漫步者lollipods如何调节音量_漫步者LolliPods怎么配对双耳-使用教程[通俗易懂]

    不少用户在入手漫步者LolliPods后不知道怎么配对双耳,小编今天为大家带来了漫步者LolliPods的使用教程,感兴趣的朋友不要错过了哦。漫步者LolliPods配对双耳教程方法一一、先随便连接一只耳机,连接以后点击断开连接,把左耳放回充电仓,二、拿出右耳,把充电仓盖上让右耳断开左耳的链接,然后手机搜索能搜到右耳连接,三、这样两个都可以匹配上了,并且使用时随便一只连接都是主耳机方法二第一:拿出…

    2022年4月9日
    725
  • java SPI机制的使用及原理

    java SPI机制的使用及原理

    2021年8月3日
    57
  • C语言中volatilekeyword的作用

    C语言中volatilekeyword的作用

    2021年12月2日
    48

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号