Home > Unix Programming > Quizzes > Unix Basics Practice Test: Vi Editor
Unix Basics Practice Test: Vi Editor
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 88% Most missed: “Which command is used to know the current line number?”
Quiz questions on vi basics and modes, vi input mode, vi ex mode, vi editor navigation, vi editor editing text, commands for searching, replacing and substituting in vi editor. The vi editor, or "vee eye", is a fast, powerful, command-line text editor that comes standard on Unix systems. It has two modes: Command and Insert. In Command mode, you can use keyboard keys to navigate, delete, copy, and paste. In Insert mode, you can enter text, use the Enter key to go to a new line, use the arrow keys to navigate text, and use vi as a free-form text editor. To return to Command mode, press the... Show more
Unix Basics Practice Test: Vi Editor
Time left 00:00
25 Questions

1. Which key is used for absolute movement?
2. To recover from a crash, we can use ____ command.
3. Which command is used for saving and quitting the editor simultaneously?
4. Which command is used for putting deleted lines or part of lines at a different location?
5. Which one of the following is the best way of saving and quitting the editor?
6. Which of the following command is not used for entering or replacing text?
7. Which one of the following command is used to replace a single character with many?
8. To copy 10 lines from the current cursor location, we can use _____
9. One of the most important features of vi editor is _______
10. Which one of the following keys are used to moving cursor rightwards along a line?
11. Quit (:q) command doesn’t work if the buffer is unsaved.
12. Which of the following commands will move the cursor to the end of line number 30 if the current position of the cursor is line number 01?
13. To quit vi editor without saving the buffer we can use
14. Copying is referred to as yanking in vi editor.
15. To copy (yank) lines in vi editor, we use ______ command.
16. Which command is used to know the current line number?
17. Which option is used by vi editor to open a file in read mode only?
18. To navigate 20 pages forward, we can use ______ command.
19. ‘:w’ command can be used to write selected lines.
20. How can we escape to the UNIX shell without quitting vi editor?
21. Using ‘w’ command we can _____________
22. Which command will be used to insert text at the beginning of the line?
23. We can prefix repeat factor with word navigation commands.
24. To save a file and return to shell prompt, which one of the following command will be used in ex-mode?
25. What is the default mode of vi editor?