Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I created a file in Ubuntu command prompt like this

$ gedit first_file.txt 

After editing and saving the file when do ls on command prompt I can see an additional file created


My Question

  1. What is this file and why it is created?
  2. Will it ok to tell Ubuntu not to created these files and how?
share|improve this question

marked as duplicate by vasa1, Takkat, Glutanimate, Eric Carvalho, Warren Hill Jul 15 '13 at 7:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 3 down vote accepted

They are backup copies.

To control the creation of those: Edit -> Preferences -> Editor and look for "File Saving".

enter image description here

share|improve this answer

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