LPI
101-500 · 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. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
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
(31 responses)- C3% (1)
- D94% (29)
- E3% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#vi editor#command mode#startup behavior#empty file
Community Discussion
No community discussion yet for this question.