Multiple choice technology operating systems

What is the correct format to open the file /etc/test into the vi editor?

  1. /etc/test vi

  2. vi /etc/test

  3. edit /etc/test

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The vi editor is invoked with the syntax 'vi [filename]'. Therefore 'vi /etc/test' is the correct way to open the /etc/test file. Option A has the wrong order (command first), option C uses a non-standard command, and 'edit' is not the standard vi invocation.