LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-20-2012, 11:36 AM   #1
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120
How to prevent backup file creation (kate & kwrite)


Hi gyus!
I got tired to delete a tons of backups that created with text editors (filename with ~ append).
How to disable this behavoir? I searched through editors settings: nothing found about...

Thanks in advance.
 
Old 04-20-2012, 05:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I did a quick google (I'm sure you did, too), and it appears that
there are no such settings for either program. Why don't you a)
use a more customisable editor, like e.g. vim, or b) just automate
the removal of the back-ups? Slap this in your crontab
Code:
0 */3 * * *  /bin/find /home/user -name \*~ -exec /bin/rm {} \;
(obviously replace "user" with your account name ;})



Cheers,
Tink
 
Old 04-20-2012, 06:00 PM   #3
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Original Poster
Rep: Reputation: 120Reputation: 120
Thanks for the reply!
Removing backups with script is the same way as deleting by hand.
I want to prevent backups creation.

And I thinking its possible: when I loading from liveUSB (Linux Mint 12 KDE), no backups created on files editing with kate or kwrite.
 
Old 04-20-2012, 06:27 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
What version of Kate? I just tried it with v3.4.5 and found the option to disable the automatic saving in about 15 seconds.

Settings > Configure Kate > Editor Component > Open/Save > Advanced
Uncheck the box next to local files under "Backup on Save"

I don't use Kate, so I don't know if it would be available on yours...maybe it's a new option you don't have, or an old option that has been removed.

Last edited by suicidaleggroll; 04-20-2012 at 06:29 PM.
 
Old 04-21-2012, 12:27 AM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Original Poster
Rep: Reputation: 120Reputation: 120
The same 3.4.5 here. Really it works with kate as well as with kwrite.
Its my mistake, can't discover this checkbox. May be a time to buy a glasses

Thanks a lot!
 
  


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
[SOLVED] Prevent subdirectory creation while allowing file creation bweddell Linux - Security 5 07-31-2011 09:54 PM
Kwrite and Kate are buggy MTK358 General 7 01-31-2010 05:33 PM
strange highlighting problem in Kate and KWrite steineswz Linux - Software 1 01-25-2007 04:31 PM
Plugins for KDE- Kwrite Kate etc saurya_s Linux - Software 0 04-19-2004 04:50 PM
install kwrite/kate without kde wm? matthewchng Linux - Software 2 02-25-2004 04:34 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration