COP 3344-01 Introduction to Unix: Lecture 3
Learning objectives
After this class, you should be able to:
- Use emacs, pico, and vi to create and edit text files.
- Explain and use the following commands in pico
^^,^b,^d,^f,^k,^n,^o,^p,^u,^v,^x, and^y.- Explain and use the following commands in emacs
^b,^d,^f,^g,^k,^n,^p,^v,ESC v,^x ^c,^x ^f,^x ^s, and^y.- Explain and use the following commands in vi in the command mode
h,i,j,k,l,:q,:w, andx.- How will you switch from insert mode to command mode in vi?
Reading assignment
- JEA: Chapters 13-16.
- Lecture slides: Lecture3.
Exercises and review questions
- Questions on current lecture's material
- Create a text file using each of the three editors: emacs, pico, and vi. Practice use of the commands given in the learning objectives. Choose one of the editors, and learn about it in greater detail.
- Questions on next lecture's material
- We used the
catcommand to create a file in lecture 1. Find out what this command really does. Also explain what the purpose of>>was, in creating files usingcatin lecture 1. (Hint: Find material on IO redirection.) (Post a brief answer on the discussion board)