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?
Asked
Active
Viewed 153 times
-1

MAPK
- 139
1 Answers
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
.txt~
files and none of them are.txt
(the actual files) showing in terminal. Why? – MAPK Aug 02 '18 at 21:30