Multiple choice

Which of the following commands is used in vi editor to write to the file and then quit?

  1. :q

  2. :q!

  3. :wq

  4. :e

  5. :r

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

This command is used in vi editor to write to the file and then quit.