QuestionQ13

Essential Commands

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

Choose two
  • A esc ZZ
  • B ctrl :w!
  • C esc zz
  • D esc :wq!
  • E ctrl XX
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!