Home > Article > Operation and Maintenance > What is the linux exit vi command?
What is the Linux exit vi command?
Press the ESC key to exit the vi editing command, then: :w
Save the file but do not exit vi:w file
Will Save the modification to file without exiting vi:w!
Force save without exiting vi:wq
Save the file and exit vi :wq!
Force to save the file and exit viq:
Do not save the file and exit vi:q!
Do not save the file and force exit vi:e!
Discard all changes and start editing from the last time you saved the file
Recommended tutorial: "linux tutorial"
The above is the detailed content of What is the linux exit vi command?. For more information, please follow other related articles on the PHP Chinese website!