How do I save changes and quit?

How do I save changes and quit?
Answer
Saving Changes and Quitting vi
  1. Save the contents of the buffer (write the buffer to the file on disk) by typing:
  2. Save and quit by typing:
  3. Press Return. Alternatively, type ZZ .
  4. When you’ve made no changes to a file and want to quit, type:
  5. If you do not want to save your changes, type:
  6. Press Return.
 

Tìm kiếm

Back
Top