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)
上一篇 2022年5月19日 下午3:40
下一篇 2022年5月19日 下午3:40


相关推荐

  • administrator改名字_计算机名和用户名

    administrator改名字_计算机名和用户名重命名计算机必须以管理员或Administrators组成员身份登录才能完成该过程。如果计算机与网络连接,则网络策略设置也可以阻止您完成此步骤。在控制面板中打开系统。在“计算机名称”选项卡,单击“更改”。在“计算机名”下键入计算机的新名称,然后单击“确定”。如果计算机是域的成员,则提示您提供用户名和用户密码才能重命名域中的计算机。注意要打开“系统”,请单击“开始”,指向“设置”,单击“控制面…

    2022年10月14日
    4
  • 虚拟机安装ubuntu12.04LTS及相关设置和常见问题的解决

    虚拟机安装ubuntu12.04LTS及相关设置和常见问题的解决前几天达内的来我们学校给我们培训,学习的是C++,使用的是用虚拟机安装的ubuntu,我不喜欢用他们的,于是自己在自己的电脑上安装,我安装过14版本的ubuntu,不过很卡,后来安装12.04LTS,

    2022年7月2日
    21
  • RocketMQ原理剖析

    RocketMQ原理剖析RocketMQ 架构图

    2026年3月17日
    2
  • 【Fungus笔记】No.3:与 Sprite(精灵) 交互,Click(点击) or Drag(拖拽)

    【Fungus笔记】No.3:与 Sprite(精灵) 交互,Click(点击) or Drag(拖拽)当 Block 段落 的响应事件为 Sprite 类时 可以通过跟 Sprite 精灵 的交互来执行指令 交互行为包括拖拽和点击两种 nbsp 首先是 ObjectClicke 点击 设置为点击事件后 它要求我们选定一个 nbsp ClickableObj nbsp 作为被点击物体 除了 nbsp ClickableObj nbsp 外 我们还可以看到与拖拽事件相关的其他物体 Fungus 默认给

    2026年3月18日
    2
  • SpringBoot上传文件出错

    SpringBoot上传文件出错现象SpringBoot项目,今天做了一个与前端对接富文本的上传图片到服务器,返回一段URL给前端,一直运行着,前端一直请求接口一直上传图片做测试的时候,后台报了一个错误Couldnotparsemultipartservletrequest;nestedexceptionisjava.io.IOException:Thetemporaryuploadlocat…

    2022年6月3日
    69
  • 处理Mac 下 Python selenium webdriver 无法上传图片

    处理Mac 下 Python selenium webdriver 无法上传图片

    2021年5月23日
    158

发表回复

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

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