|
These commands will work with most (if not all) distributions
of Linux as well as most implementations of Unix. They're the
commands that everybody knows. To be able to navigate in
Linux, you should become familiar with these.
Editing
The basic syntax to invoke these text editors are the same.
Type the name of the editor followed by the file you want to
edit, separated by a space in between.
To use GNU Emacs (or its counterpart, XEmacs), there are
really only two commands you need to know.
To save a file: [Ctrl]-x [Ctrl]-s
To exit a file: [Ctrl]-x [Ctrl]-c
To use the online tutorial just type [Ctrl]
h then t
The instructions for using pico are located
at the bottom of the screen.
To save a file: [Ctrl]-o <--- write out
To exit a file: [Ctrl]-x
vim
Most modern distributions include vim,
derived from the Unix editor, vi.
Using vim is different in that there are
several modes in which you use it. To do actual editing of
the files, press [ESC] i (both
separately). Then to save it, press [ESC] :
w. Escape, the colon, and "w" should be keyed
in one after the other. Finally, to quit, type
[ESC] : q. The same rules apply as in previous
vim commands.
You can use "w" and "q" at the same time to enable yourself
to write to the file and then quit right afterwards. Just
press [ESC] : w q.
If you don't have vim installed, try
vi instead.
joe
To start the editor, type joe followed by the name of file
you want to edit. Once you have typed [Ctrl]K
H, the first help window appears at the top of
the screen. You can continue to enter and edit text while the
help window is on. To page through other topics, hit ^[, and
^[. (that is, ESC , and ESC .). Use [Ctrl]K
H to dismiss the help window. You can customize
the keyboard layout, the help screens and a number of
behavior defaults by copying JOE's initialization file
(usually /usr/local/lib/joerc) to .joerc in your home
directory and then by modifying it.
To save a file: [Ctrl]-k x <--- write out
To exit a file: [Ctrl]-k q
Copyright © 1997-1999 Joshua Go
(jtg@computers.iwz.com). All rights reserved. Permission
to use, distribute, and copy this document is hereby granted.
You may modify this document as long as credit to me is
given.
|