我想知道哪个应用正在生成这些“保存”。文件? [英] I like to know which app is generating these "saves" files ?
问题描述
我正在使用nano编辑器在Linux上开发bash脚本。
我正在使用bash -B选项制作脚本的副本
raspi-config-DEBUG.sh
raspi-config-DEBUG.sh~
今天我注意到我也有一吨这些文件
raspi-config-DEBUG.sh.save
raspi-config-DEBUG.sh.save.1
raspi-config-DEBUG.sh.save.10
raspi-config-DEBUG.sh.save.11
raspi-config-DEBUG.sh .save.12
raspi-config-DEBUG.sh.save.13
raspi-config-DEBUG.sh.save.2
raspi-config-DEBUG.sh.save.3
raspi-config-DEBUG.sh.save.4
raspi-config-DEBUG.sh.save.9
raspi-config-DEBUG.sh.save.9.sh
我很好奇哪个应用程序是生成这些文件的时间。
我尝试了什么:
我问一个关于保存文件生成的问题。
我无能为力,无法猜测答案或过程来发现答案。
I am using nano editor to develop bash script on Linux.
I am using bash -B option which makes a copy of the script
raspi-config-DEBUG.sh
raspi-config-DEBUG.sh~
Today I noticed I also have a ton of these files
raspi-config-DEBUG.sh.save
raspi-config-DEBUG.sh.save.1
raspi-config-DEBUG.sh.save.10
raspi-config-DEBUG.sh.save.11
raspi-config-DEBUG.sh.save.12
raspi-config-DEBUG.sh.save.13
raspi-config-DEBUG.sh.save.2
raspi-config-DEBUG.sh.save.3
raspi-config-DEBUG.sh.save.4
raspi-config-DEBUG.sh.save.9
raspi-config-DEBUG.sh.save.9.sh
I am curious which application is generating these files and when.
What I have tried:
I am asking a question about "save " file generation.
I am clueless and in no position to "guess" the answer or process to discover the answer.
推荐答案
来自man nano
,部分注意
:
From "man nano
", the sectionNOTES
:
In some cases nano will try to dump the buffer into an emergency file. This will happen mainly if nano receives a SIGHUP
or SIGTERM or runs out of memory. 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, it will add ".save" plus a number (e.g. ".save.1") to the current filename in order to make it unique.
In multibuffer mode, nano will write all the open buffers to their respective emergency files.
这篇关于我想知道哪个应用正在生成这些“保存”。文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!