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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Option GNU long option Meaning -h, -? --help Show this message
+LINE,COLUMN Start at line LINE, column COLUMN
-A --smarthome Enable smart home key
-B --backup Save backups of existing files
-C <dir> --backupdir=<dir> Directory for saving unique backup files
-D --boldtext Use bold instead of reverse video text
-E --tabstospaces Convert typed tabs to spaces
-F --multibuffer Enable multiple file buffers
-H --historylog Log & read search/replace string history
-I --ignorercfiles Don't look at nanorc files
-K --rebindkeypad Fix numeric keypad key confusion problem
-L --nonewlines Don't add newlines to the ends of files
-N --noconvert Don't convert files from DOS/Mac format
-O --morespace Use one more line for editing
-Q <str> --quotestr=<str> Quoting string
Most editors will have similar feature, including gui such as kate, gedit and so on (I seem to remember kate had it on by default, but long time since I used kate )
also , try and resolve any script related posts here on LQ, good experience
I gained very much from such activity, not only my own research and testing but from the feedback I get from other, more experienced members
Ugh, why are you guys so awesome, isn't this supposed to be a frustrating thing to get into or something?
Originally Posted by jpollard
Edit the file - and make changes. Exit. Things look fine.
Edit the file again, then quit.
Original file is now gone.
This is what a change management system is for - it will preserve any changes, and allow you to recover from any version recorded.
Interesting. I haven't been able to recreate this yet (or perhaps notice :P), but it sounds like my next step will be to learn how to make it so that if <filename>.orig already exists, it will not be overwritten and the command will terminate early.
You could always just implement a file rotation, one way was just to add a ".n" where n is a number. You might want to decide that if you do use a number you might want to specify the number of digits in the number. That way you always get the file versions listed in order...