-1

I have files like my_file.txt in my folder in ubuntu system, but when I ls on the command line terminal it shows my_file.txt~ and not my_file.txt. I need to read this file using R program which is causing it to read the file incorrectly in R. What could be the reason it show .txt~ extension in my terminal?

MAPK
  • 139
  • @Panther It's a different problem. My whole directory is cluttered with .txt~ files and none of them are .txt (the actual files) showing in terminal. Why? – MAPK Aug 02 '18 at 21:30
  • @dessert How do I get rid of those files? – MAPK Aug 02 '18 at 21:31
  • First figure out what editors are making the backups and disable auto backup. Then use find – Panther Aug 03 '18 at 01:19

1 Answers1

0

If you've edited the file in a text editor like GNU emacs then the .txt~ version of the file is created when you save any new edits, the ~ version is the last revision of the file before your current edits were saved.

I'm not sure which text editor you‘re using but most likely these files have come from someone editing them in a text editor either emacs or another editor.

Matt Bashton
  • 365
  • 1
  • 3
  • 12