LFCS Exam QuestionsBrowse all questions from this exam

LFCS Exam - Question 80


What happens after issuing the command vi without any additional parameters?

Show Answer
Correct Answer: D

When the command vi is issued without any additional parameters, the vi editor starts in command mode and opens a new empty file. This means the editor is ready for the user to either start editing a new file or load an existing one, but no file content is present initially.

Discussion

1 comment
Sign in to comment
9866666Option: B
Jun 25, 2024

The correct answer is B. vi starts and requires the user to explicitly either create a new or load an existing file. When you run the vi command without specifying a filename, it opens in command mode, but doesn't automatically load or create a file. You have to explicitly tell it what you want to do: To create a new file: Type :e filename and press Enter (where filename is the name of the new file you want to create). To open an existing file: Type :e filename and press Enter (where filename is the name of the existing file you want to open).