Workshop

The following exercises are intended to help you become more comfortable with the various programs we talked about in this hour, as well as help you to become more comfortable about finding additional information on your own.

Quiz

1:The command for entering command mode in vi is
  1. Control key

  2. Alt key

  3. Escape key

  4. Enter key

A1: The correct answer is C.
2:Which of the following keys can be used to enter text entry mode in vi?
  1. t

  2. p

  3. h

  4. o

A2: The correct answer is D.
3:When in command mode, which of the following key sequences will quickly save and exit vi?
  1. SS

  2. ZZ

  3. zz

  4. ss

A3: The correct answer is B. Remember that case is important.
4:Which key can follow most vi command names to force the action to occur?
  1. *

  2. %

  3. !

  4. &

A4: The correct answer is C.

Exercises

1:Open a ...

Get Sams Teach Yourself FreeBSD® in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.