1.

To save a file and return to shell prompt, which one of the following command will be used in ex-mode?(a) :w(b) ‘:x’(c) :a(d) :fThe question was asked in an internship interview.Query is from Vi-Ex Mode topic in portion The Vi Editor of Unix

Answer»

The CORRECT answer is (b) ‘:X

The EXPLANATION: Pressing ‘:x’ in ex-mode will save the file on the disk and returns the SHELL prompt.



Discussion

No Comment Found

Related InterviewSolutions