Now it's time to cover the next prerequisite skill, the use of a terminal base
editor such as VI to edit text files. When you administer Linux never use a
binary editor such as Microsoft Word or even open office dot org writer to edit
a text file especially a Linux configuration file. If you save one of these
files in binary format Linux won't be able to read the file and that may render
your system unbootable. You really need to know at least one major terminal
based text editor. If you ever have to go into rescue mode you probably won't be
able to get to the GUI. Three of the major terminal based text editors are VI,
EMACS and JOVE. IF you already know how to use one of these editors or anything
thing else that works at the command line, stop right here you're ready for the
next lesson. Unfortunately there's no way I can show you everything about text
editors in a single tutorial. So we'll just go through a very basic over view of
VI, the version included with modern Linux distributions is actually known as
VIM which is short for VI improved. We'll test it out on the standard password
database file, but before we edit the file let's back it up in the home directory.
Now we can open the password file on the local home directory without fear of
accidentally editing it and making the system unbootable. Navigation is
intuitive, in the current version of VI you can use the arrow keys to navigate
right, left, up, and down. You can use the page up and page down keys to
navigate, page down, page up. You can even use the delete key to remove characters.
And use the insert key to enter insert mode and then you can add the information
you need. To get out of the insert mode press the escape key. If I make more
mistakes with out saving I can quit with the cue command but that doesn't quite
work cause I've already made changes. To really quit with out saving type colon
Q, exclamation point. Other key commands include colon WQ with quits and saves,
colon W which write files, colon q which quits. There are a lot more things you
can do with the VI editor but those are the basics. I urge you to learn more but
that's all I have time to cover this tutorial. Thank you and on to the next movie.
Red Hat Certified Technician
Michael Jang
US$ 99.95
7 hours - 103 Movies
Win Vista XP 2000,ME. Mac OS X
Ground / 2 day / Next Day
33785
136 In Stock
Apex Web Media ( Hyperteach ) P.O Box 398 Bolton BL7 9YS, United Kingdom. Tel: +44 (0) 1204 592071 Fax: +44 (0) 1204 592092 Email:
Apex Web Media ( Hyperteach ) 600 17th Street, Suite 2800, Denver CO 80202 Tel: Toll free 1866 402 1903 (USA) / 434 878 4158 Fax: 1 207 433 4356 Email: