You are not logged in.
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...
Last edited by trusktr (2010-02-22 22:38:19)
joe@trusktr.io - joe at true skater dot io.
Offline
The ~ suffix indicates a backup file. Do you use vim, perchance?
Offline
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
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
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
//github/
Offline
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
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
Offline
I turned off "Create a backup copy of files before saving" in the gedit options. I haven't noticed any backup files from vim though, just gedit. 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
Yeah, Arch's vim doesn't make backups by default.
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
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
Arch/linus must have some temporary file log and a shedule to delete temporary files maybe?
No it does not...
Offline
Hmmmm... perhaps maybe it was Gnome. I think that might be a better assumption. The files are gone! (which is good )
joe@trusktr.io - joe at true skater dot io.
Offline
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
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
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
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
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
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