LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   howto get rid of files with ~ appended (https://www.linuxquestions.org/questions/linux-software-2/howto-get-rid-of-files-with-%7E-appended-194112/)

random234 06-16-2004 05:41 AM

howto get rid of files with ~ appended
 
I wonder how to get rid of those annoying files which appear after appending new text to an file. I mean it's nice to have the chance to undo changes but, it bloats the hd.

ls
something.txt
joe something.txt
ls
something.txt something.txt~

Would be nice if someone could help especially because I can't figure out an google search term which returns anything useful.

GexNZ 06-16-2004 07:19 AM

Do you want to stop the backup action from occurring. Or just delete the file when you notice it?

If you just want to remove the file
rm filename.txt~
will do it. No sure of disabling the feature altogether.

miss crump 06-16-2004 09:19 AM

If you don't want your editor to make backup copies by default, you can tell it not to. If you're using a graphical interface, like Kate for example, check in the program's Preferences. Every program I've looked at has an option to turn off automatic backup.

If you're using a terminal based editor, like Joe of Vi, then check their man pages. You can add a line to their rc files to make them stop backups.

random234 06-16-2004 09:45 AM

Thanks i'm feeling so dumb right now


All times are GMT -5. The time now is 09:44 PM.