LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-17-2004, 07:20 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
filename- and filename~ files?


im running slackware 10 and whenever i create a file, there's always a blank file created called <filename>~, so if i make a file called "asdf.txt" there will be an "asdf.txt~" in the same directory. what are theses files? my /etc folder has ~ files and there a lot of files like "group-". what do the - and ~ mean? do i need these files? the ~ files are empty anyway, i usually just delete those and it doesnt make a difference
 
Old 10-17-2004, 07:43 PM   #2
Adony
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Gentoo 2004.2 - working on LFS 6
Posts: 126

Rep: Reputation: 15
These are just backup files created by vim (and others i think), to allow you to use multiple undo and redo.
You could safely delete it after editing. the original file.
 
Old 10-17-2004, 07:51 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
I'd been noticing them too, and rather a lot of them...

Is there a way of setting up the system to automatically delete them, say when the original file is closed (to avoid the need of either doing it manually or setting up a script that has to search the whole disk)?

Last edited by Robhogg; 10-17-2004 at 07:53 PM.
 
Old 10-17-2004, 08:27 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
The ~ files are nothing that the system creates,
they are create by your editor. You can disable
their creation, but it's really quite good practice
to keep them unless you manually make back-up
copies of system files before modifying them.


Cheers,
Tink
 
Old 10-17-2004, 09:45 PM   #5
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
but they're all empty. why would i want empty files sitting around doing nothing?
 
Old 10-17-2004, 10:32 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
In that case just kill them ... I find it very strange,
however ...


Cheers,
Tink
 
  


Reply


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
for script: listing files which have space in filename hamish Linux - General 5 10-22-2005 09:25 AM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 04:33 AM
filename.part << partially downloaded files... jimjamjahaa Linux - Newbie 2 04-04-2005 11:48 AM
Meaning of .files and when to use ./filename costasm Linux - Newbie 3 10-19-2003 09:23 AM
Amazing thing !I could not remove files even i am root and rm -fr filename. whepin Linux - General 6 01-04-2002 06:30 AM


All times are GMT -5. The time now is 07:56 AM.

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