Question: What is the difference between the ZZ and :wq commands in vi editor? ZZ quits the editor immediately, :wq saves and quits the editor ZZ

What is the difference between the ZZ and :wq commands in vi editor?
ZZ quits the editor immediately, :wq saves and quits the editor
ZZ saves the file and leaves the editor open, :wq saves and quits the editor
ZZ saves and quits the editor from Insert mode, :wq saves and quits from Command mode
ZZ saves and quits the editor and :wq saves and quits the editor

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!