在linux中,我用VI编辑一个文本。然后卡了!我重启后出现如下代码!如何解决?
代码如下:E325:ATTENTIONFoundaswapfilebythename".oracle-ds.xml.swp"ownedby:rootdated:MonAu...
代码如下:
E325: ATTENTION
Found a swap file by the name ".oracle-ds.xml.swp"
owned by: root dated: Mon Aug 8 14:58:55 2011
file name: /home/doyoo/jboss-4.2.2.GA/server/default/deploy/oracle-ds.xml
modified: YES
user name: root host name: linux100
process ID: 4460
While opening file "oracle-ds.xml"
dated: Mon Aug 8 15:00:31 2011
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 oracle-ds.xml"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".oracle-ds.xml.swp"
to avoid this message.
"oracle-ds.xml" [dos] 21L, 992C
Press ENTER or type command to continue
如何解决! 求高手指教。 展开
E325: ATTENTION
Found a swap file by the name ".oracle-ds.xml.swp"
owned by: root dated: Mon Aug 8 14:58:55 2011
file name: /home/doyoo/jboss-4.2.2.GA/server/default/deploy/oracle-ds.xml
modified: YES
user name: root host name: linux100
process ID: 4460
While opening file "oracle-ds.xml"
dated: Mon Aug 8 15:00:31 2011
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 oracle-ds.xml"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".oracle-ds.xml.swp"
to avoid this message.
"oracle-ds.xml" [dos] 21L, 992C
Press ENTER or type command to continue
如何解决! 求高手指教。 展开
2个回答
展开全部
你编辑的文件应该是 /home/doyoo/jboss-4.2.2.GA/server/default/deploy/oracle-ds.xml,那么进入 /home/doyoo/jboss-4.2.2.GA/server/default/deploy,执行ls -a命令,你会看到一个.oracle-ds.xml.swp(前面有一个点),执行rm -rf .oracle-ds.xml.swp命令,把这个文件删掉(放心,你原来的文件还在的)。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询