linux下编辑文件异常退出
2015-05-04 13:26
405 查看
在linux下编辑一个文件,异常退出后,如果下次再编辑文件就会产生如下报错
E325: ATTENTION
Found a swap file by the name ".login.swp"
owned by: root dated: Thu Mar 19 13:53:49 2015
file name: /etc/pam.d/login
modified: no
user name: root host name: oracle-test
process ID: 14815
While opening file "login"
dated: Thu Mar 19 15:55:35 2015
NEWER than swap file!
(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 login"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".login.swp"
to avoid this message.
"login" 18L, 805C
Press ENTER or type command to continue
只需清楚这个swap文件就行
rm -r .login.swp
E325: ATTENTION
Found a swap file by the name ".login.swp"
owned by: root dated: Thu Mar 19 13:53:49 2015
file name: /etc/pam.d/login
modified: no
user name: root host name: oracle-test
process ID: 14815
While opening file "login"
dated: Thu Mar 19 15:55:35 2015
NEWER than swap file!
(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 login"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".login.swp"
to avoid this message.
"login" 18L, 805C
Press ENTER or type command to continue
只需清楚这个swap文件就行
rm -r .login.swp
相关文章推荐
- Linux C程序异常退出怎么办——core文件帮你忙
- Linux上vi编辑文件非正常退出后文件恢复
- linux编辑文件,中途退出再进入编辑操作
- linux 编辑文件过程中意外退出,再次进入报错解决
- LINUX C 程序异常退出---文件连接数过多
- 如何在Linux维护模式中编辑fstab文件?
- windows下编辑的文件在linux下打开后会有很多^M?什么原因,如何去掉?
- linux 下运行jar文件,终端退出但是jar依旧运行
- Linux初窥:常用命令之(文件编辑与查看)
- linux可执行文件错误:异常/bin/sh^M: bad interpreter: No such file or dire
- sed-加速你在Linux的文件编辑
- linux文件创建、查看、编辑命令
- Linux多线程socket程序异常退出-断开的管道
- Linux:多文件编辑
- mac或linux中打开.bashrc,编辑完之后如何保存退出
- linux下编辑文件时如何定位光标到文件某处
- 关于Android7.0版本及其以上系统获取本地数据(图片和文件)报系统出现异常,正在退出问题
- linux ubuntu vi编辑文件信息工具使用应用
- Linux环境下VI/VIM编辑文件时无权限保存的解决方法
- 编辑linux下的配置文件,一定不要在Windows下编辑