nano.save文件是什么东西,是怎么产生的?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
haoaina521
帖子: 37
注册时间: 2012-08-20 16:17

nano.save文件是什么东西,是怎么产生的?

#1

帖子 haoaina521 » 2013-04-18 20:54

如题。。。麻烦大牛解答下
mraandtux
论坛版主
帖子: 5211
注册时间: 2009-12-12 19:29
系统: Kubuntu

Re: nano.save文件是什么东西,是怎么产生的?

#2

帖子 mraandtux » 2013-04-18 22:32

nano编辑器的文件。
haoaina521
帖子: 37
注册时间: 2012-08-20 16:17

Re: nano.save文件是什么东西,是怎么产生的?

#3

帖子 haoaina521 » 2013-04-19 0:56

mraandtux 写了:nano编辑器的文件。
咦,我都没有安装过这个编辑器,好像也没用过,这个编辑器有什么用?那这些文件可不可以删除???
mraandtux
论坛版主
帖子: 5211
注册时间: 2009-12-12 19:29
系统: Kubuntu

Re: nano.save文件是什么东西,是怎么产生的?

#4

帖子 mraandtux » 2013-04-19 9:05

haoaina521 写了:
mraandtux 写了:nano编辑器的文件。
咦,我都没有安装过这个编辑器,好像也没用过,这个编辑器有什么用?那这些文件可不可以删除???
nano编辑器只能在终端使用,nano.save文件可以删除,nano这个软件包也可以删除。
haoaina521
帖子: 37
注册时间: 2012-08-20 16:17

Re: nano.save文件是什么东西,是怎么产生的?

#5

帖子 haoaina521 » 2013-04-19 10:31

mraandtux 写了:
haoaina521 写了:
mraandtux 写了:nano编辑器的文件。
咦,我都没有安装过这个编辑器,好像也没用过,这个编辑器有什么用?那这些文件可不可以删除???
nano编辑器只能在终端使用,nano.save文件可以删除,nano这个软件包也可以删除。
额,我的意思是可以用nano编辑器来干嘛,我好像都没用过,然后就产生了这些文件。
上次由 haoaina521 在 2013-04-19 11:31,总共编辑 1 次。
mraandtux
论坛版主
帖子: 5211
注册时间: 2009-12-12 19:29
系统: Kubuntu

Re: nano.save文件是什么东西,是怎么产生的?

#6

帖子 mraandtux » 2013-04-19 10:39

haoaina521 写了:
mraandtux 写了:
haoaina521 写了:
mraandtux 写了:nano编辑器的文件。
咦,我都没有安装过这个编辑器,好像也没用过,这个编辑器有什么用?那这些文件可不可以删除???
nano编辑器只能在终端使用,nano.save文件可以删除,nano这个软件包也可以删除。
额,我的意思是可以用nano编辑器来干嘛,我好像都没用过,然后就产生了这么文件。
nano就当gedit一样。
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: nano.save文件是什么东西,是怎么产生的?

#7

帖子 YeLee » 2013-04-19 12:31

nano will try to dump the buffer into an emergency file in some cases. Mainly, this will happen if nano receives a SIGHUP or SIGTERM or runs out of memory, when it will write the buffer into a file named nano.save if the buffer didn't have a name already, or will add a ".save" suffix to the current filename. If an emergency file with that name already exists in the current directory, ".save" and a number (e.g. ".save.1") will be suffixed to the current filename in order to make it unique. In multibuffer mode, nano will write all the open buffers to the respective emergency files.
:em01 :em01 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
haoaina521
帖子: 37
注册时间: 2012-08-20 16:17

Re: nano.save文件是什么东西,是怎么产生的?

#8

帖子 haoaina521 » 2013-04-19 13:44

YeLee 写了:
nano will try to dump the buffer into an emergency file in some cases. Mainly, this will happen if nano receives a SIGHUP or SIGTERM or runs out of memory, when it will write the buffer into a file named nano.save if the buffer didn't have a name already, or will add a ".save" suffix to the current filename. If an emergency file with that name already exists in the current directory, ".save" and a number (e.g. ".save.1") will be suffixed to the current filename in order to make it unique. In multibuffer mode, nano will write all the open buffers to the respective emergency files.
:em01 :em01 :em01
大概的意思是nano会在紧急的情况将buffer写入到nano.save文件中,比如nano收到一个sighup,sigterm或者内存溢出?sighup,sigterm是什么来着?但是我并有没有启用nano,或者是说什么情况下某个程序将nano当成默认编辑器使用了?
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: nano.save文件是什么东西,是怎么产生的?

#9

帖子 YeLee » 2013-04-19 15:32

例如visudo之类的东西,会调用默认编辑器。 :em01 :em01 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
haoaina521
帖子: 37
注册时间: 2012-08-20 16:17

Re: nano.save文件是什么东西,是怎么产生的?

#10

帖子 haoaina521 » 2013-04-19 18:47

YeLee 写了:例如visudo之类的东西,会调用默认编辑器。 :em01 :em01 :em01
但是我的默认编辑器是vim啊
回复