filename ends with ~ in my home directory...
Dear all
I see some file like txt files ends with ~ character e.g myname.txt at the same time I see myname.txt~ why like this ??? should I remove that file to free-up the disk space regards |
These are backup files. They are automatically created from some editors (e.g. gedit) when you modify a file. They are the original copy without the last modification (verify using the diff command).
In gedit you can disable this feature: uncheck Edit --> Preferences --> Editor --> "Create a backup copy of files before saving". |
Quote:
Regards |
It will stay there forever, as any other regular file, until you remove it. If you want to remove all the backup files at once, use find:
Code:
find $HOME -type f -name \*~ -ok rm {} \; |
All times are GMT -5. The time now is 01:34 AM. |