how to edit a file when not in X (ie from the command line)
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.
You need to use a text editor - eg pico /folder/subfolder/filename or vi or whatever your text editor is.
That is - type in your text editor name folowed by a space followed by the path to the file you wish to edit. Not knowing your system, distro, etc no one can tell you the exact command.
So your steps are:
Identify which text editor you need to use in a console
Identify the path to your folder and the file name
Type it into a console as "editorname /path/to/filename" (minus the quotes)
Edit the file
Save the file
Typing "man your text editor" (minus the quotes) into a console will give you a great deal of info on th editor and the commands you can use.
acid_kewpie:It's not a question of paying more attention.It's a question of understanding.Things that may seem blindingly obvious to you,might well confuse a newbie like me I'm sorry to be so dumb,but I am new to this and I know my questions must bug some of the more experienced posters here.I can only apologise.
mjolnir: I've also just got the hang of vi.I also have gedit which I can use,I think.
Originally posted by ludwig W Things that may seem blindingly obvious to you,might well confuse a newbie like me. I'm sorry to be so dumb,but I am new to this and I know my questions must bug some of the more experienced posters here.I can only apologise.
Very true. It's easy to get impatient and forget how confusing some of this stuff was, starting out... all of us were newbies at one point.
Don't feel bad about asking questions! I mean, this is LinuxQuestions.org... And the more experienced people might be bugged but that's just too bad for them. Most of the people here are very willing to lend an ear and some assistance.