Multiple choice technology architecture

Purpose of the command ZZ in VI Editor?

  1. to exit, if changes are not made to the file.

  2. forced quit, it will discard the changes and quit.

  3. save and Exit.

  4. forces over writes.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In vi editor, ZZ saves the file and exits. This is equivalent to :wq command. Option A is incorrect - ZZ exits regardless of changes. Option B describes :q! (forced quit without saving). Option D describes forced write operations like :w!, not ZZ.