0

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

first_file.txt~  

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?
Gaurav Agarwal
  • 11,315
  • 18
  • 50
  • 66

1 Answers1

3

They are backup copies.

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

enter image description here

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
Gunnar Hjalmarsson
  • 32,938
  • 3
  • 63
  • 94