早教吧作业答案频道 -->其他-->
linuxvi打开文件出现的信息是什么意思?要怎么操作Whileopeningfile"test.txt"dated:SunApr1320:13:402014NEWERthanswapfile!(1)Anotherprogrammaybeeditingthesamefile.Ifthisisthecase,becarefulnottoendupwithtwodi
题目详情
linux vi打开文件出现的信息是什么意思?要怎么操作
While opening file "test.txt"
dated:Sun Apr 13 20:13:40 2014
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 test.txt"
to recover the changes (see ":help recovery").
If you did this already,delete the swap file ".test.txt.swp"
to avoid this message.
Swap file ".test.txt.swp" already exists!
[O]pen Read-Only,(E)dit anyway,(R)ecover,(D)elete it,(Q)uit,(A)bort:
-- More --
While opening file "test.txt"
dated:Sun Apr 13 20:13:40 2014
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 test.txt"
to recover the changes (see ":help recovery").
If you did this already,delete the swap file ".test.txt.swp"
to avoid this message.
Swap file ".test.txt.swp" already exists!
[O]pen Read-Only,(E)dit anyway,(R)ecover,(D)elete it,(Q)uit,(A)bort:
-- More --
▼优质解答
答案和解析
用vi编辑文件(如这里的test.txt)时,系统会自动产生一个文件叫.test.txt.swp.如果正常退出,此文件会被自动删去.如果上次非正常退出,如果再编辑它,系统会首先查.test.txt.swp
是否存在,如果存在,就会问你如何处理.选择在结尾:
O:read-only,只读,不能改
E:可以改,从前的修改都丢失
R:恢复(从前的修改)
D:删去(我没用过,估计是删去.test.txt.swp)
Q:退出(什么也不做)
A:半途放弃(没用过)
最重要的问题是:是否有另外的应用在使用此文件?如果是,最好先找出(用fuser命令),再决定如何处理.
是否存在,如果存在,就会问你如何处理.选择在结尾:
O:read-only,只读,不能改
E:可以改,从前的修改都丢失
R:恢复(从前的修改)
D:删去(我没用过,估计是删去.test.txt.swp)
Q:退出(什么也不做)
A:半途放弃(没用过)
最重要的问题是:是否有另外的应用在使用此文件?如果是,最好先找出(用fuser命令),再决定如何处理.
看了 linuxvi打开文件出现的...的网友还看了以下:
we的e在英音里发/i/还是/:e/的音?me的e在英音里发/i/还是/:e/的音?he的e在英音 2020-05-13 …
I ____my English test and i was very uppset. 2020-05-14 …
英语翻译It (be) my birthday tomorrow.Yet I (have) a t 2020-05-16 …
failed,I,Chinese,the,test (连词成句) 2020-05-16 …
设A,B是三阶方阵,若满足等式A+BA=B,求(A-I)^(-1)是什么?我是这样算的,BA-B= 2020-06-18 …
英语翻译这是一篇关于如何分析某某系统的学术论文,这个反映或者反馈是TEST出来的 2020-06-23 …
C语言中二维数组a[i][j]中,a+i=*(a+i)=a[i]=&a[i]是怎么理解的.其中*( 2020-06-27 …
在VC中,为什么i=3输出y=++i值为4;而i=3,y=(++i)+(++i)值为10?在y=( 2020-07-26 …
sure单用什么意思,碰到一个老外,碰到一个老外,他好像对我有意思(反正就是感觉他喜欢我)我就直接问 2020-12-11 …
sure在这里什么意思,碰到一个老外碰到一个老外,他好像对我有意思(反正就是感觉他喜欢我)我就直接问 2020-12-11 …