4.8 grep and regular expressions4 Labs4.6 Editor  --  vi4.7 Editor -- emacs

4.7 Editor -- emacs

emacs is a text editor. It is a large text editor. The source distribution from the FSFis about 55.5 MBytes. There are several books avaliable to help you lear it in detail. See Cameron. There are several versions of it. The FSFversion is probably the most popular version due to their liberal software licence. Do the emacs tutorial on a system with emacs. gort has emacs installed. Type emacs and follow the instructions.
username@gort ~ $ emacs
then ^H(for help) then t(for tutorial)

You may want to try the hyper-text manual pages for emacs.

username@gort ~ $ emacs
then ESC, x, and info
You may want to copy ~ltaber/.emacs from my area so the cursor keys work if you use a VT200/VT300 terminal. This was done for you when your account was setup on gort. You may want to ftp this file to another system.

Additional information can be found on emacs in the info system.

username@gort ~ $ info emacs
and in the O'Reilly & Associates, Inc. book, Learning GNU Emacs.

Copy over an emacs configuration file from the class area.

username@gort ~ $ cp ~cis137/.emacs .
(Did you see that trailing "dot"? You need it.)

TABER CIS137 Lab 4.7: emacs -- Print your name.





  1. What are the last 5 words in the emacs tutorial?




  2. What does the command "username@gort ~ $pico temp" do?




  3. What is the -k option for when used with the man command?




  4. How can you display just your entry in the /etc/passwd file? (grep)




  5. How many lines are in /etc/passwd? (use wc)




  6. What does the -F (upper case) option do for the ls command?




  7. How many options does the grep command have? (man)




  8. What is in the file /var/log/syslog? (cat, tail, head, more, less)




Write your answers on this page and turn it in.
Instructor: ltaber@pima.edu ** My new Home at GeoApps in Tucson ** The Pima College Site

4.8 grep and regular expressions4 Labs4.6 Editor  --  vi4.7 Editor -- emacs