HP Certified: HP-UX System Administration

   

1:

You have made changes to a file and want to quit vi without saving these changes. What command will you use?

  1. :wq

  2. x

  3. q!

  4. w!

2:

You want to replace cat with dog in your file at all locations in the vi editor. You use:

  1. /s/cat/dog

  2. s/cat/dog/

  3. s/cat/dog/g

  4. s/dog/cat/g

3:

While in command mode you press "a"; what happens?

  1. This is an invalid command.

  2. The editor goes into insert mode and starts inserting text after the current cursor location.

  3. The editor searches for character "a" in the open file.

  4. The editor gives a beep sound.


   
Top

Категории