1.

To quit vi editor without saving the buffer we can use(a) :q(b) :c(c) :w(d) :q!This question was posed to me in a national level competition.This intriguing question comes from Vi Basics and Modes in chapter The Vi Editor of Unix

Answer»

Right choice is (d) :Q!

To elaborate: For quitting VI editor, there are NUMEROUS ways available in ex-mode as well as in command mode. One WAY of which is to type ‘:q!’ in ex-mode.



Discussion

No Comment Found

Related InterviewSolutions