You have a terminal window open and the current directory is /tmp. Which command should you use to open a file named ofc in the /etc/xinetd.d directory?
  1. vi ofc
  2. vi /tmp/ofc
  3. vi /etc/xinetd.d/ofc
  4. vi /etc/xinetd.d
Explanation
Answer - C - You should use the vi /etc/xinetd.d/ofc command to open a file named ofc in the /etc/xinetd.d directory.

Key Takeaway: The vi editor is a screen-based editor that has powerful features to aid programmers. The vi editor uses the full screen to ensure that it displays the kind of terminal you are in. It lets a user create new files or edit existing files. The command to start the vi editor is vi, followed by the filename.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz