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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • java snmp walk_snmpwalk用法

    java snmp walk_snmpwalk用法snmpwalk语法:snmpwalk交换机或路由器IP地址-cSNMP读密码-v1或2(代表SNMP版本)OID(对象标示符)用法举例:1、snmpwalk-cpublic-v1-mALL192.168.30.49.1.3.6.1.2.1.25.1得到取得windows端的系统进程用户数等2、snmpwalk-cpublic-v1-mALL192…

    2022年6月30日
    27
  • emc测试标准有哪些_emc标准体系

    emc测试标准有哪些_emc标准体系电波暗室,用于模拟开阔场,同时用于辐射无线电骚扰(EMI)和辐射敏感度(EMS)测量的密闭屏蔽室。来源:http://gememc.com/upload/201712/20171201093022763.jpg文章目录0.前言1.什么是EMC测试2.EMC标准的发布和管理者3.GB/T17626.X系列国家标准4.EMC试验的选择5.静电放电抗扰度试验6.浪涌(冲击)抗扰度试验7.电压…

    2022年9月5日
    3
  • pyhcarm激活码(最新序列号破解)[通俗易懂]

    pyhcarm激活码(最新序列号破解),https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月18日
    77
  • python读取图片文件名_python 获取图片并自动命名保存

    python读取图片文件名_python 获取图片并自动命名保存#-*-coding:UTF-8-*-#导入第三方库importurllibfrombs4importBeautifulSoupimportrequestsimportosimporttimeimportrandom#获取文件夹,如果文件夹不存在则创建新文件夹ifos.path.isdir(‘E://biaoqing//’):passelse:os.mkdir(‘E…

    2022年9月4日
    15
  • 百度PCS快速获取access_token的方法

    百度PCS快速获取access_token的方法

    2021年8月26日
    53
  • 【Linux 内核网络协议栈源码剖析】recvfrom 函数剖析

    【Linux 内核网络协议栈源码剖析】recvfrom 函数剖析继前篇介绍完sendto数据发送函数后,这里介绍数据接收函数recvfrom。一、应用层——recvfrom函数对于这个函数有必要分析一下,先看看这个dup例子。服务器端中调用recvfrom函数,并未指定发送端(客户端)的地址,换句话说这个函数是一个被动函数,有点类似于tcp协议中服务器listen之后阻塞,等待客户端connect。这里则是服务器端recvfrom后,等待客户端

    2022年7月23日
    8

发表回复

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

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