LPI
101-400 · Question #36
What happens after issuing the command vi without any additional parameters?
The correct answer is D. vi starts in command mode and opens a new empty file. See the full explanation below for the reasoning.
Question
What happens after issuing the command vi without any additional parameters?
Options
- Avi starts and loads the last file used and moves the cursor to the position where vi was when it
- Bvi starts and requires the user to explicitly either create a new or load an existing file.
- Cvi exits with an error message as it cannot be invoked without a file name to operate on.
- Dvi starts in command mode and opens a new empty file.
- Evi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains
How the community answered
(14 responses)- A14% (2)
- D79% (11)
- E7% (1)
Community Discussion
No community discussion yet for this question.