1.

Which of the following is an invalid command?(a) :r file01(b) :e file01(c) :e#(d) :w # file01The question was asked in an interview for internship.I'd like to ask this question from Handling Multiple Files and Buffers in chapter Advanced Vi of Unix

Answer»

Correct choice is (d) :w # file01

Explanation: : r file01 will read the contents of file01 below the CURRENT line. :efile01 will stop editing the current FILE and will EDIT file01. Similarly, :e# RETURNS to editing most recently edited file.



Discussion

No Comment Found

Related InterviewSolutions