QuestionQ13

VerifiedEssential Commands

Which of the following vi editor command sequences saves the open document and exits the editor?

Choose two
Explanation

In vi, ZZ from Normal mode saves a modified file and exits. The Ex command :wq! writes the file and quits, with ! forcing the write when allowed.

Community Discussion

No comments yet. Be the first to start the discussion!