Introduction to Linux I – Chapter 09 Exam Answers 2019 + PDF file

How to find: Press “Ctrl + F” in the browser and fill in whatever wording is in the question to find that question/answer. If the question is not here, find it in Questions Bank.

NOTE: If you have the new question on this test, please comment Question and Multiple-Choice list in form below this article. We will update answers for you in the shortest time. Thank you! We truly value your contribution to the website.

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

  • f
  • t
  • g
  • w

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

  • g
  • $
  • ^
  • 1

3. To go to the first line of a vi document in command mode, you can type: (choose two)

  • G
  • GG
  • 1G
  • gg

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

  • #
  • ^
  • $
  • *

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

  • w
  • b
  • r
  • c

6. 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. Typing which of the following from vi command mode will attempt to save your file?

  • :w
  • :s
  • :f
  • :r

8. 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. To save and then quit, you can type in command mode:

  • :wq
  • :q
  • :qw
  • :WQ

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

  • /
  • |
  • ?

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

  • ?
  • /
  • |

12. 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. 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. 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. 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. 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. 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. 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. 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. If you want to move down a line in vi command mode, you can press the down arrow key or:

  • l
  • j
  • h
  • k

21. Which of the following variables affect the standard editor for a user?

  • $EDLIN
  • $ENV
  • $VISUAL
  • $VI

22. To configure the default or standard editor for a user, which file should the $EDITOR variable be configured in?

  • .bashrc
  • .vimrc
  • .stdedit
  • .editor
Subscribe
Notify of
guest

2 Comments
Inline Feedbacks
View all comments
ALinuxNovice
ALinuxNovice
3 years ago

I don’t know when these two questions have been added, but they’ve been added since 2019:

Which of the following variables affect the standard editor for a user?
$EDLIN

$ENV

$VISUAL

$VI

The answer is: $VISUAL

To configure the default or standard editor for a user, which file should the $EDITOR variable be configured in?

.bashrc

.vimrc

.stdedit

.editor

The answer is: .bashrc

IT Administrator
Admin
IT Administrator
3 years ago
Reply to  ALinuxNovice

Thanks for your sharing!!