1.

To save a file and remain in vi editor, which one of the following command will be used?(a) :w(b) ‘:x’(c) :q(d) :aI have been asked this question in semester exam.I'd like to ask this question from Vi-Ex Mode in division The Vi Editor of Unix

Answer»

Correct answer is (a) :W

To elaborate: For saving a file and to remain in editor we can use ‘:w’ command in ex-mode. It is generally considered a GOOD practice to save the contents of buffer regularly while working with FILES using ‘:w’.



Discussion

No Comment Found

Related InterviewSolutions