1.

Which of the following command will be used if we want to abort editing and quit the editor even if the buffer has been changed and not saved?(a) :q(b) :b(c) :q!(d) :wThe question was asked in exam.This interesting question is from Vi-Ex Mode topic in portion The Vi Editor of Unix

Answer»

Right answer is (c) :q!

For explanation I would say: If the buffer has been changed and we STILL want to abandon the CHANGES, then ‘:q!’ is used. It simply ignores all the changes made and quits without DISPLAYING any WARNING QUESTIONS.



Discussion

No Comment Found

Related InterviewSolutions