Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am just starting to do the better thing so please explain in detail if you can, thanks!
Any ways, I was doing some Perl script editing today in KWrite and I ran into a problem I can not figure out! When I am finished editing I do Ctrl + S and I guess it over writes the old file! But that is not what happens. When I do that and close KWrite I see another file named the same name as the file I just edited but with a * ~ * at the end of it's name, like so * geo_uk.pl~ *. I have to manual delete it because my password end up in that file. So how do I stop that file from being created or have it automatically deleted when I am done editing the original!
I'm probably the least informed person to answer this, but the only time I've seen the tilde is when a process is interupted before it completes. ie: when there's a power outage or closing an application before it completes processing.
My experience has been *~ file seems to be the version of the file * prior to your last save. For example say you save, type for a bit then save a minute later. The file with the ~ will be what you saved a minute ago. I'm really not sure if this is entirely accurate, and have no idea if there's a way to disable this function.
Those are baclup files created by the text editor in case you need to revert to the old version. You can configure each app individually to prevent it from creating such files.
I have gone through the kWrite docs, every page but don't see any where how I can auto remove the copies when I Ctrl + S the changes I made! I'll play with it a little more today to see if I can figure it out!
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646
Rep:
I have the German version of Kwrite only, but the menus to get to this option should be called something like "Settings" --> "Configure Editor" --> "Open/Save" --> "Backup when saving" (the right option is now at the bottom of the right tab).
Edit: Corrections
Last edited by titopoquito; 11-19-2005 at 08:04 AM.
Originally posted by titopoquito I have the German version of Kwrite only, but the menus to get to this option should be called something like "Settings" --> "Configure Editor" --> "Open/Save" --> "Backup when saving" (the right option is now at the bottom of the right tab).
Edit: Corrections
Awesome, titopoquito!!!
Yes that worked just great. Wow I guess I really need to spend time learning this stuff, you know I opened the setting menu but did not go that far! Really I thank you and everyone else so much! This forum rocks! So much great content...
Another suggestion is to forget those WYSIWYG editors and start learning the tools used by system administrators to maintain scripts; namely, the sed editor and the vi editor (or vim, which stands for vi improved)..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.