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.
need help with using vi or emacs. trying create a file in my home directory. use either emacs or vi to just write anything in the editor and save to the newly created file. i was under the impression that when i wanted to save the editor message i would write :w with the filename to be saved and the name of the directory to be saved in. i am apparently doing something incorrectly because i cannot get it to save. please help..
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
^C-x ^C-w will save and exit emacs after modifying a buffer.
Try searching google for a emacs tutorial (or do the excellent one that comes with emacs already) and search fro a emacs reference card with all the common commands.
I have a couple of files I use for reference on emacs and vi. here's what they say:
**** "<C>" here means <ctrl>, "<M>" means "meta" or "Alt"
<C>-x <C>-f => "find" file, (open file)
<C>-g => universal "stop"-- good for when you mess up w/ commands
<esc><esc><esc> => same as <C>-g
<C>-x <C>-s => save file
<C>-x <C>-b => buffers list
<C>-x b => switch buffer
<C>-x a "#" => number of buffer windows
<C>-x o => move cursor to other buffer window
<C>-<M>-v => scroll other window
<C>-v => move foreward one screen
<M>-v => move back one screen
<C>-s => foreward search
<C>-r => reverse search
<F10> => pull down menu options... use arrows and <enter> to select
"i" => insert mode
"Esc" => normal mode
in insert mode, it's just like a normal text-editor.
some basic normal mode commands:
:q! => quit w/out saving
:w <file> => write to <file> (<file> only needed once)
:wq => write and quit
dw => delete word
d$ => delet to end of line
dd => delet whole line
u => undo command
<ctrl>-g => show location & status of file
:<command> => execute <command> (in bash... ex: mkdir)
Also, when you open up emacs, hit "ctrl-h t" for the tutor, and for vim, there's the "vimtutor" command (type from command line... not from inside vim)