4.7 grep and regular expressions4 Labs4.5 Editor  -  vi4.6 Editor 3 - emacs

4.6 Editor 3 - emacs

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.6: 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 are my office hours?
    finger ltaber@lt.tucson.az.us




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




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




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




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.7 grep and regular expressions4 Labs4.5 Editor  -  vi4.6 Editor 3 - emacs