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.
ok. I have found the "root" line (didn't realize you have to use the down arrows to move through the file). But even in this editor I get the same options when I choose "file". save not being one of them.how do I save the changes?
I also get a warning when I open the file to edit that the last sesion crashed and there may be someone else working on it or there maybe a duplicate file. probably from my abrubt exiting without saving. posibly unrelated I noticed a failure when I boot fedora" mounting fuse control file system failed" . don't know how important that is yet. first would like to straighten out monitor before I have a seizure.
The ":wq[Enter]" in the above should write and quit the file.
The above explaned:
"/^root[Enter]" (I know I forgot the "[Enter]" in the above, but I take it you figured that out) searches the file for the word root appearing at the beginning (signified by the "^") of a line.
"yy" yanks one line into the buffer.
"p" puts the item in the buffer below the current line.
"cw" changes the line from the current cursor position to the end of the current word.
"YOURUSERNAME" is what it changes it to and "[Esc]" ends the change input.
":wq[Enter]" writes the file out and quits (I use wq out of habit, you can also do the same thing with ":x")
forrestt, just wanted to let you know it worked and solved the monitor problem. I really appriciate your help. still have two failures on start up , but I'll sort that out in time. I have much to learn. Thanks!!