Get the App
SLTechnology News&Howtos  ›  Servers  › 

How linux exits the vi Editor

Shulou Source: shulou.com Published: 2022-06-03 02:08:49 11月18日 Update

What is the linux exit vi command?

Press the ESC key to jump out of the vi editing command, and then:

W Save the file without exiting vi

W file saves the changes to file and does not exit vi

: w! Forced save, do not launch vi

Wq saves the file and exits vi

: wq! Force to save the file and exit vi

Q: quit vi without saving the file

: q! Do not save the file, force to exit vi

: e! Discard all changes and edit since the last time the file was saved

These are the details of what the linux exit vi command is, please pay more attention to other related articles!

Tags: Files commands enforcement content that is articles more editor Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Technology Shulou Information Apple macOS