How do I save changes to a file in Terminal?

Ngoc Hue

New member
How do I save changes to a file in Terminal?
Answer
The command to save a file in Vim and quit the editor is :
wq. To save the file and exit the editor simultaneously, press Esc to switch to normal mode, type :wq and hit Enter . Another command to save a file and quit Vim is
.
 

Tìm kiếm

Back
Top