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


相关推荐

  • 聊一聊Zabbix都监控哪些参数

    聊一聊Zabbix都监控哪些参数面试中的话,经常被问到技术方面的问题,也就是知识点的掌握程度,如果你准备充分的话,这个到不难,但一些开放性的东西,你可能答得就不是很好,便来到了我们的正题Zabbix监控哪些参数呢?这个范围是比较大、比较开放的,阔以以点带面的回答,也可概括性的回答,下面列举一些数据库:磁盘使用情况、内存使用情况、并发链接数量 数据库增删改查的频率、主从状态、缓冲池web:web服务是否正常、订单是否能正常下单注册是否正常、服务的响应时间、服务的并发量磁盘:使用率、block数,Inode数

    2022年6月14日
    40
  • jsp include参数传送接收与应用

    jsp include参数传送接收与应用jspinclude参数传送接收与应用

    2022年7月15日
    18
  • “SqlTransaction 已完成;它再也无法使用”解决方法

    “SqlTransaction 已完成;它再也无法使用”解决方法 当只是使用一次事务时,只用简单的事务就可以了示例代码:      SqlServerDataBaseobj=newSqlServerDataBase();       SqlConnectionconn=obj.DBconn();       conn.Open();       SqlTransactionmyTrans;       myTrans=co

    2022年5月20日
    33
  • MethodFilterInterceptor和AbstractInterceptor的比较

    MethodFilterInterceptor和AbstractInterceptor的比较在编写自定义拦截器的时候,需要继承AbstractInterceptor或者MethodFilterInterceptor,那么他们有什么不同呢首先查看MethodFilterInterceptor的源代码我们发现MethodFilterInterceptor也是继承了AbstractInterceptor的,并且MethodFilterInterceptor里面定义了两个参数,分别是excl…

    2022年5月14日
    35
  • 软RAID1 更换坏硬盘

    软RAID1 更换坏硬盘1 买块容量一样大小的硬盘 2 把新买的硬盘安装到机器了 3 分区硬盘并把 t 的类型设为 fd 我新添加的硬盘盘符为 dev sdb fdisk dev sdb4 运行 partprobe 让内核重新装载分区表 5 停止 RAID1 的挂载 umount dev md06 移除损坏的设备 mdadm dev md0 r de

    2025年8月4日
    2
  • redis分布式锁的应用场景_分布式锁redis实现方式

    redis分布式锁的应用场景_分布式锁redis实现方式RedLock分布式锁 基于Redis实现分布式锁的方式名叫Redlock 安全特性:互斥访问,即永远只有一个client能拿到锁 避免死锁:最终client都可能拿到锁,不会出现死锁的情况,即使原本锁住某资源的clientcrash了或者出现了网络分区(两个完全不连通的区域,美国的网咱们登不上去) 容错性:只要大部分Redis节点存活就可以正常提供服务 Redis集群及应用场景热点数据存取数据优先从Redis操作,如果不存在再从文

    2025年10月7日
    3

发表回复

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

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