Question
$ vi file001
a.
open file named file001
b.
edit file named file001
c.
delete a file named file001
d.
open file if it exists else creates a new file
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. What does the following command do? $ vi file001
Similar Questions
Discover Related MCQs
Q. Which option is used by vi editor to open a file in read mode only?
View solution
Q. How many types of modes are used by vi editor?
View solution
Q. What is the default mode of vi editor?
View solution
Q. To insert text into a file, _____ mode is used.
View solution
Q. ex mode is used for what purpose?
View solution
Q. Which one of the following key is used to switch from command mode to input mode?
View solution
Q. ____ key is used for switching to command mode from input mode.
View solution
Q. Which of the following key is used to enter in ex-mode?
View solution
Q. ex-mode is used to save our work.
View solution
Q. Input mode is used for ____________
View solution
Q. Which command is used to insert text before the current cursor location?
View solution
Q. Which command will be used to insert text at the beginning of the line?
View solution
Q. To append text after the current cursor location, we can use ____ command
View solution
Q. Which command appends text at the end of the current line?
View solution
Q. To replace a single character, we use ____ command
View solution
Q. vi automatically switches from command mode to input mode when we press ‘r’.
View solution
Q. To replace all text on the right of the cursor position, we use ____ command.
View solution
Q. Which one of the following command is used to replace a single character with many?
View solution
Q. To replace 5 characters with new characters, which one of the following will be used?
View solution
Q. To replace the entire line irrespective of cursor position, we can use ____ command
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!