Last Updated on February 9, 2016 by
Introduction to Linux I Chapter 9 Exam Answer
-
Question ID 584
To move forward one word at a time in the vi command mode, you press:
- f
- t
- g
- w
-
Question ID 585
To go to the beginning of a line in the vi command mode, you press:
- g
- $
- ^
- 1
-
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
-
Question ID 587
To navigate to the end of the line in vi command mode, you can press:
- #
- ^
- $
- *
-
Question ID 588
To move backward through a vi document, word by word, you press:
- w
- b
- r
- c
-
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
-
Question ID 590
Typing which of the following from vi command mode will attempt to save your file?
- :w
- :s
- :f
- :r
-
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!
-
Question ID 592
To save and then quit, you can type in command mode:
- :wq
- :q
- :qw
- :WQ
-
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.
- /
- |
- ?
-
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.
- ?
- /
- |
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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