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


相关推荐

  • uniqueidentifier什么意思_数据类型int是什么意思

    uniqueidentifier什么意思_数据类型int是什么意思uniqueidentifier数据类型可存储16字节的二进制值,其作用与全局唯一标记符(GUID)一样。GUID是唯一的二进制数:世界上的任何两台计算机都不会生成重复的GUID值。GUID主要用于在用于多个节点,多台计算机的网络中,分配必须具有唯一性的标识符。在SQL中ROWGUIDCOL表示新列是行的全局唯一标识列。对于每个表只能指派一个uniqueidentifier列作为ROWGUI

    2022年9月4日
    2
  • 可以调整gif动画图片尺寸的很实用的php类建议收藏

    类的使用demo:temp_dir="keleyi";$gr->resize("keleyi.gif","keleyi_resized.g

    2021年12月20日
    49
  • WSAStartup函数的用途

    我们先来看看WSAStartup函数的原型intPASCALFARWSAStartup(WORDwVersionRequired,LPWSADATAlpWSAData);    可以这么理解,第一个参数提供必要信息(为了加载套接字库),第二个参数获取相关信息(获取相关信息)。看看下面的程序就明白了(其中wVersion比较重要):          WSACl

    2022年4月7日
    53
  • Pycharm安装最新超详细版本[通俗易懂]

    Pycharm安装最新超详细版本[通俗易懂]pycharm安装最新最详细版本,想拥有一个完美的python的IDE?看这就够了!

    2022年8月25日
    5
  • 项目复盘/总结模板

    项目复盘/总结模板复盘会议的安排、步骤及意义什么是复盘?为何要复盘?WHAT?复盘,是行动后的深刻反思和经验总结,是一个不断学习、总结、反思、提炼和持续提高的过程。复盘是企业文化、是行动学习、是提升组织智慧的重

    2022年8月3日
    6
  • win10下deepfakes环境配置(一)- 软件安装

    win10下deepfakes环境配置(一)- 软件安装Deepfakes环境配置以下以64位Win10环境下(win7不能使用Openfaceswap,请参考faceswap),Openfaceswap为例,零编程基础学习deepfakes的环境搭配。Openfaceswap简介Openfaceswap基于开源软件Faceswap而定制的图形界面版本,Faceswap地址(最新版已经集成GUI版本,有动力能力的可以到Githu…

    2022年5月9日
    90

发表回复

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

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