Introduction to Linux I Chapter 9 Exam

Last Updated on February 9, 2016 by

Introduction to Linux I Chapter 9 Exam Answer

  1. Question ID 584

    To move forward one word at a time in the vi command mode, you press:

    • f
    • t
    • g
    • w
  2. Question ID 585

    To go to the beginning of a line in the vi command mode, you press:

    • g
    • $
    • ^
    • 1
  3. Question ID 586

    To go to the first line of a vi document in command mode, you can type:

    (choose two)

    • G
    • GG
    • 1G
    • gg
  4. Question ID 587

    To navigate to the end of the line in vi command mode, you can press:

    • #
    • ^
    • $
    • *
  5. Question ID 588

    To move backward through a vi document, word by word, you press:

    • w
    • b
    • r
    • c
  6. Question ID 589

    What would typing “4dh” do in vi command mode?

    • Duplicate the next four characters
    • Delete the previous four characters
    • Delete the next four lines
    • Delete the next four characters
  7. Question ID 590

    Typing which of the following from vi command mode will attempt to save your file?

    • :w
    • :s
    • :f
    • :r
  8. Question ID 591

    If you want to quit the vi program without saving any of the changes you made to your file, you can type in command mode:

    • :a
    • :Q
    • :s
    • :q!
  9. Question ID 592

    To save and then quit, you can type in command mode:

    • :wq
    • :q
    • :qw
    • :WQ
  10. Question ID 593

    To search forward from your cursor in your vi document in command mode, you can type __ followed by the pattern to search for.

    • /
    • |
    • ?
  11. Question ID 594

    To search backward from your cursor in your vi document in command mode, you can type __ followed by the pattern to search for.

    • ?
    • /
    • |
  12. Question ID 595

    To perform cut and paste in a vi document, you actually do:

    • delete and put
    • yank and put
    • yank and paste
    • delete and yank
  13. Question ID 596

    If you are in the vi command mode and want to begin inserting text before your cursor, you can type:

    • A
    • i
    • o
    • O
  14. Question ID 597

    If you are in vi command mode and want to begin inserting text at the end of the line, you can type:

    • o
    • I
    • O
    • A
  15. Question ID 598

    If you are in the vi command mode and want to add a new line before your cursor, you can type:

    • i
    • o
    • O
    • a
  16. Question ID 599

    If you are in vi command mode and want to add a new line after your cursor, you can type:

    • o
    • O
    • i
    • a
  17. Question ID 600

    If you want to move a character to the left in vi command mode, you can press the left arrow key or:

    • l
    • h
    • j
    • k
  18. Question ID 601

    If you want to move a character to the right in vi command mode, you can press the right arrow key or:

    • l
    • k
    • j
    • h
  19. Question ID 602

    If you want to move up a line in vi command mode, you can press the up arrow key or:

    • j
    • h
    • l
    • k
  20. Question ID 603

    If you want to move down a line in vi command mode, you can press the down arrow key or:

    • l
    • j
    • h
    • k