adplus-dvertising
frame-decoration

Question

What does the following command do?

$ 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

Answer: (d).open file if it exists else creates a new file

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?

Q. How many types of modes are used by vi editor?

Q. What is the default mode of vi editor?

Q. To insert text into a file, _____ mode is used.

Q. ex mode is used for what purpose?

Q. Which one of the following key is used to switch from command mode to input mode?

Q. ____ key is used for switching to command mode from input mode.

Q. Which of the following key is used to enter in ex-mode?

Q. ex-mode is used to save our work.

Q. Input mode is used for ____________

Q. Which command is used to insert text before the current cursor location?

Q. Which command will be used to insert text at the beginning of the line?

Q. To append text after the current cursor location, we can use ____ command

Q. Which command appends text at the end of the current line?

Q. To replace a single character, we use ____ command

Q. vi automatically switches from command mode to input mode when we press ‘r’.

Q. To replace all text on the right of the cursor position, we use ____ command.

Q. Which one of the following command is used to replace a single character with many?

Q. To replace 5 characters with new characters, which one of the following will be used?

Q. To replace the entire line irrespective of cursor position, we can use ____ command