Question
a.
:w
b.
‘:x’
c.
:a
d.
:f
Posted under UNIX
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. To save a file and return to shell prompt, which one of the following command will be used in ex-mode?
Similar Questions
Discover Related MCQs
Q. To save a file and remain in vi editor, which one of the following command will be used?
View solution
Q. After pressing ‘:w’, we can normally resume our editing work.
View solution
Q. We can specify the filename with ‘:w’ command.
View solution
Q. Which command is used for saving and quitting the editor simultaneously?
View solution
Q. Which of the following command is a substitute for ‘:x’ command?
View solution
Q. Which one of the following is the best way for saving and quitting the editor?
View solution
Q. Which command is used to abort the editing and quit the editing mode?
View solution
Q. Quit (:q) command doesn’t work if the buffer is unsaved.
View solution
Q. 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?
View solution
Q. In ex-mode, current line is represented by ___
View solution
Q. In ex-mode, last line is represented by ___
View solution
Q. ‘:w’ command can be used to write selected lines.
View solution
Q. Which of the following command will be used to write the 4th line to file named file002?
View solution
Q. Which of the following is not a valid command?
View solution
Q. How can we escape to the UNIX shell without quitting vi editor?
View solution
Q. To return back to the editor from shell prompt we use _____ command.
View solution
Q. vi editor stores most of its information in a hidden swap file.
View solution
Q. To recover from a crash, we can use ____ command.
View solution
Q. The following command will save the contents of the buffer and overwrites the contents of existing file.
:w! File003
View solution
Q. For navigation purposes, the mode should be _____ mode.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!