Found a swap file by the name ".jsidInspector.py.swp"
来源:互联网 发布:windows系统声音没了 编辑:程序博客网 时间:2024/05/22 08:02
linux下使用vim打开文件时报如下异常
E325: ATTENTIONFound a swap file by the name ".jsidInspector.py.swp" owned by: root dated: Thu Jan 12 11:36:47 2017 file name: /inspectoraccount/jsidInspector.py modified: YES user name: root host name: localhost.localdomain process ID: 7084 (still running)While opening file "jsidInspector.py" dated: Thu Jan 12 13:24:22 2017 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 jsidInspector.py" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".jsidInspector.py.swp"to avoid this message.
在vim格式未保存时退出,或者两台机器同时操作一个文件时都会出现这个问题(报存在一个swap文件)
如果是多台机器同时操作一个文件,直接在另外一台机器退出即可
如果是未保存退出导致的(比如突然强制关机),首先你可以按回车什么都不干,就直接进入到了当前的文件vim模式,看看当前的文件内容是不是原先的内容,如果觉得和你想要的差不多不需要恢复,那就直接执行rm指令删除那个swap文件
rm -rf .jsidInspector.py.swp
执行这个操作不会对你现在的文件产生影响。如果内容变化较大,你想要恢复,那就按
:q
先退出来,然后执行
vim -r jsidInspector.py
接着会出现要求你选择要恢复的指定文件,输入swap文件对应的数字,文件就恢复到了未保存时退出的样子。
0 0
- Found a swap file by the name ".jsidInspector.py.swp"
- Found a swap file by the name “.git/.MERGE_MSG.swp”
- Found a swap file by the name “.git/.MERGE_MSG.swp”
- Hadoop:Found a swap file by the name "/etc/.hosts.swp"
- centos 打开配置文件出错:E325: ATTENTION Found a swap file by the name "/etc/vsftpd/.vsftpd.conf.swp"
- git下拉项目出现的问题:E325: ATTENTION Found a swap file by the name “.git/.COMMIT_EDITMSG.swp”
- linux下found a swap file by the name
- E325: ATTENTION Found a swap file by the name
- 关于 Found a swap file by the name xx
- linux下vi操作Found a swap file by the name
- linux下vi操作Found a swap file by the name
- linux下vi操作Found a swap file by the name
- Linux下vi操作出现“Found a swap file by the name。。。”警告问题
- linux下vi操作Found a swap file by the name
- linux下vi操作Found a swap file by the name
- vi/vim操作时提示Found a swap file by the name
- linux下vi操作Found a swap file by the name
- found a swap file by the name——linux svn 服务
- postgresql中wal_level的三个参数
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- logstash 调用exec
- 从GPU-CPU工作架构上分析帧率卡顿问题
- 2017开始了
- Found a swap file by the name ".jsidInspector.py.swp"
- mongodb修改器:
- Android App 多语言切换
- Android 自定义星级评分控件
- SpringMVC RESTful 实践demo
- 定义一个结构体指针需要分配存储空间?
- as中apk签名和多渠道打包
- mysql索引(mysql 索引类型以及创建)
- HDU 2092 韦达定理