Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I noticed while working on my site through nano/terminal that ubuntu creates weird ~ files.

I've index.php~ etc.

I imagine this are backup files? is this correct? why does it do this? and how do I get rid of this functionality?

share|improve this question

1 Answer

up vote 4 down vote accepted

Yes, those are backup files, most Unix editors do that. You can disable them with:

unset backup

in your ~/.nanorc. See man nanorc for more information.

share|improve this answer
2  
This will only deactivate it for the nano editor.. Don't be surprised if files with that ending will still be created - by other applications. – alfonx Oct 16 '11 at 14:59
so how do I disable it systemwide? – Sandro Dzneladze Oct 16 '11 at 15:09
Why do you want to disable it systemwide? It seems like a good practice to me. – bbaja42 Oct 16 '11 at 15:22
it doesn't function correctly anyways. Right now index.php~ and index.php have same content - even though I edited out the main file. – Sandro Dzneladze Oct 16 '11 at 16:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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