How to save and exit after modifying files under centos system

王林
Release: 2020-03-19 18:14:38
Original
4417 people have browsed it

How to save and exit after modifying files under centos system

The saving command is as follows:

First, press the ESC key to switch to command mode, then:

:w Save the file without exiting vi

:w file Save the modifications to file without exiting vi

(Recommended tutorial: centos usage tutorial)

:w! Force save, Do not exit vi

:wq Save the file and exit vi

:wq! Force save the file and exit vi

:q Do not save the file and exit vi

:q! Do not save the file and force quit vi

:e! Abandon all changes and start editing again from the last time you saved the file.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to save and exit after modifying files under centos system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template