You are not logged in.

#1 2010-02-22 22:10:48

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

[SOLVED] I see files with a trailing '~' in my folders: file.html~

I don't see these files when i use my default file browser, but when I use my FTP app (filezilla) I see all kinds of files with a trailing '~'. Example: file.html~

Does anyone know what these are? Are they temporary backups? I only see them when I'm in filezilla (along with all my hidden files)

I'd like to know what they are because when I delete a file (via filezilla for example) the other files remain.

I just wanna make sure i'm not leaving junk on my hard drive... roll

Last edited by trusktr (2010-02-22 22:38:19)


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-02-22 22:11:42

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

The ~ suffix indicates a backup file. Do you use vim, perchance?

Offline

#3 2010-02-22 22:16:24

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

Yeah I use vim when i'm in console, but in gnome i usually just use gedit.  I only see these files with FileZilla though, as it's showing all hidden files and I can't figure out how to disable it.

Should I just ignore these files?


joe@trusktr.io - joe at true skater dot io.

Offline

#4 2010-02-22 22:17:13

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

Put

set nobackup

in ~/.(g)vimrc. Strange that this is not the default.

As for gedit, perhaps there is something in prefs. You may need to poke around with gconf-editor (?) or suchlike. I have not used gnome in a massively long time.

Last edited by Peasantoid (2010-02-22 22:19:57)

Offline

#5 2010-02-22 22:21:29

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

i set nobackup in vimrc b/c i find these files clutter up my ls output.

if you're anal like me, you can use something like this to clean up

# first just list them to make sure you don't catch anything important
find ./ -name '*~'

# then, if you're satisfied, up arrow and add delete
find ./ -name '*~' -delete

Offline

#6 2010-02-22 22:31:04

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

oh interesting, so it's vim and gedit that make the files.

I use gedt to make files (html, php, etc), upload them to my site, then immediately delete them, and the ~ files are left behind. Will they be auto-deleted by the system or something eventually?  Or do they stay there indefinitely until I manually delete them?

:scratches-head:

Last edited by trusktr (2010-02-22 22:39:06)


joe@trusktr.io - joe at true skater dot io.

Offline

#7 2010-02-22 22:36:47

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

trusktr wrote:

oh interesting, so it's vim and gedit that make the files.

I use gedt to make files (html, php, etc), upload them to my site, then immediately delete them, and the ~ files are left behind. Will they be auto-deleted by the system or something eventually?  Or do they stay there indefinitely until I manually delete them?

:scratches-head:

I thought they only remain behind if vim is not closed properly. Like if you close the terminal window instead of :wq


neutral

Offline

#8 2010-02-22 22:39:13

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

I turned off "Create a backup copy of files before saving" in the gedit options. big_smile I haven't noticed any backup files from vim though, just gedit. smile But still, "will those files be deleted automatically?" is a good question!

Last edited by trusktr (2010-02-22 22:39:31)


joe@trusktr.io - joe at true skater dot io.

Offline

#9 2010-02-22 23:04:46

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

Yeah, Arch's vim doesn't make backups by default.

sand_man wrote:

I thought they only remain behind if vim is not closed properly. Like if you close the terminal window instead of :wq

Perhaps you are thinking of .swp files.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#10 2010-02-24 10:26:37

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

well apparently the hidden backup files have been deleted sometime between yesterday and today. Arch/linus must have some temporary file log and a shedule to delete temporary files maybe?


joe@trusktr.io - joe at true skater dot io.

Offline

#11 2010-02-24 11:12:39

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

trusktr wrote:

Arch/linus must have some temporary file log and a shedule to delete temporary files maybe?

No it does not...

Offline

#12 2010-02-24 11:15:40

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

Hmmmm... perhaps maybe it was Gnome. I think that might be a better assumption. The files are gone! (which is good smile)


joe@trusktr.io - joe at true skater dot io.

Offline

#13 2010-02-24 19:36:00

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

There is something fishy with this. The system should never automatically delete backup files.


To know or not to know ...
... the questions remain forever.

Offline

#14 2010-02-24 22:08:11

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

those files are created by gedit

by default, it makes them when you save something to back up the old version

you can turn them off in preferences --> editor

Last edited by thestinger (2010-02-24 22:09:21)

Offline

#15 2010-02-24 22:45:59

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

So does gedit automatically delete these files maybe? Because i left two of them on there, but they are now gone!

I might just re-enable the backup feature in the options to try and figure what's going on exactly


joe@trusktr.io - joe at true skater dot io.

Offline

#16 2010-02-24 23:10:20

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

They shouldn't be auto deleted. Are you sure that you weren't viewing hidden files, then turned of the viewing hidden files? Can you see those "missing" files if you issue "ls -la" from a terminal?


Matt

"It is very difficult to educate the educated."

Offline

#17 2010-02-24 23:33:00

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

i'm sure i didn't delete them, and when I used ls -a i could not see them.
I'll re-enable to option and see what happen!


joe@trusktr.io - joe at true skater dot io.

Offline

#18 2010-02-24 23:39:08

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] I see files with a trailing '~' in my folders: file.html~

Actually, instereingly enough, the command "ls" without the "-a" shows the backup files!
But on my desktop i don't see this backup file. It's not a normal file, but it's not fully hidden as i can see it in command with "ls".

I've deleted the main source file.

I'll be back to notify whether it's auto-deleted or not!


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB