1. One of the most important features of vi editor is _______
Correct Answer is : available mostly across all UNIX platforms
2. The “ed” text editor is no longer in use.
Correct Answer is : FALSE
3. To save the editing performed on a file, we have to switch to ______ mode
4. Pressing ‘:’ in command mode invokes which mode of vi editor?
Correct Answer is : ex-mode
5. To save a file and return to shell prompt, which one of the following command will be used in ex-mode?
6. To save a file and remain in vi editor, which one of the following command will be used?
7. After pressing ‘:w’, we can normally resume our editing work.
8. We can specify the filename with ‘:w’ command.
9. Which command is used for saving and quitting the editor simultaneously?
10. Which of the following command is a substitute for ‘:x’ command?
11. Which one of the following is the best way of saving and quitting the editor?
12. Which command is used to abort the editing and quit the editing mode?
13. Quit (:q) command doesn’t work if the buffer is unsaved.
14. Which of the following command will be used if we want to abort editing and quit the editor even if the buffer has been changed and not saved?
15. In ex-mode, current line is represented by ___
16. In ex-mode, last line is represented by ___
17. ‘:w’ command can be used to write selected lines.
18. Which of the following command will be used to write the 4th line to file named file002?
Correct Answer is : : 4w file002
19. Which of the following is not a valid command?
Correct Answer is : :w 1,$ file002
20. How can we escape to the UNIX shell without quitting vi editor?
Correct Answer is : using ‘:sh’ command and using ctrl-Z