I noticed that in my home folder I have multiple .bashrc.save files. Why the system save them? It is normal or I have to disable something?

Specifically I have

.bashrc

.bashrc.save

.bashrc.save1

.bashrc.save2

.bashrc.save3

.bashrc.save4

.bashrc.save5

link|improve this question

80% accept rate
Did you use some editor to edit the contents of .bashrc? The editor might have an automatic backup feature. – karatedog Dec 28 '11 at 15:36
Yes I used nano to edit .bashrc – Kyrol Dec 28 '11 at 15:43
feedback

1 Answer

up vote 3 down vote accepted

Nano that generated this files, look at this from GNU Nano website:

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.

Link: http://www.nano-editor.org/dist/v2.2/nano.1.html

Or in your shell:

$ man nano
link|improve this answer
1  
Thanks! exactly what I want to know! – Kyrol Dec 28 '11 at 16:11
Glad I could help you! Help me out by marking my response as useful with, up, up, up! :D – Ielton Dec 28 '11 at 16:27
1  
Ok! I did it!! Thanks for help! – Kyrol Dec 28 '11 at 16:38
Ok, Thank you :D – Ielton Dec 28 '11 at 17:18
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.