Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-03-2004, 01:49 PM   #1
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Question Backup "tilde" files

I keep seeing backup files popping up everywhere that have a tilde appended to the end (e.g. filename.txt~ to backup filename.txt). I'd assume these are being created by vim as that is the editor I've been using to work with many of the files, but I can't seem to find anything in the documentation that describes it. Where are these files coming from and how can I change the settings for when/if backups are made? Thanks in advance.
Old 09-03-2004, 02:12 PM   #2
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
The "tilde" files are the previous version of the file. In other words, if you had a file that contained 10 lines of text, then removed 3 lines, the "tilde" file would still contain all 10 lines.

This is actually an incredibly useful safety valve in case you screw up an important file like XF86Config or fstab or whatever. These files are not being created on any sort of scheduled or automated process, they are created when you edit and save a file. -- J.W.
1 members found this post helpful.
Old 09-03-2004, 02:41 PM   #3
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Ok, so was I correct that it's vim that's doing this? Is this part of the program, or is it something you could disable if you want (I want to keep it on, but I'm just curious how it works)? Thanks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
add "Artist" and "Album Title" to mp3 files powah Linux - Software 2 04-05-2005 04:04 AM
why iam getting problems like "...too many files opened" or "segmentation fault" naren_0101bits Linux - Newbie 2 07-19-2004 01:20 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM
"ifcfg-ethx" and "network-functions" files peok Linux - Networking 12 08-13-2003 07:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration