Ubuntu – what are hidden files ending with ~

backup

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?

Best Answer

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.