What is the command to edit and save a file in Unix?

Phương Quyên

New member
What is the command to edit and save a file in Unix?
Answer
The command to save the contents of the editor is :w. You can combine the above command with the quit command, or use :wq and return. The easiest way to save your changes and exit vi is with the ZZ command. When you are in the command mode, type ZZ.
 

Tìm kiếm

Back
Top