1.

Which one of the following is the best way of saving and quitting the editor?(a) ZZ(b) :wq(c) :w(d) ‘:x’I have been asked this question during an interview for a job.My question is from Vi-Ex Mode topic in portion The Vi Editor of Unix

Answer»

The correct answer is (a) ZZ

The EXPLANATION: The best and preferred way to save and quit the EDITOR is to use ZZ, a command MODE command which is way better then ‘:X’ or :wq.



Discussion

No Comment Found

Related InterviewSolutions