Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the command that vi does not save forced exit in Linux?

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the Linux vi does not save the mandatory exit command, I believe that most people do not understand, in order to make you better understand, the editor summed up the following content, do not say much, let's read on.

All Unix Like systems have built-in vi document editors, while other document editors may not exist. But at present, we use a lot of vim editor. Vim is a text editor developed from vi.

"Q!" in vi The command is not to save the forced exit.

Some common commands in vi:

W save

W filename save as filename

: wq! Save and force exit

: wq! Filename note: forced exit after saving with filename as the file name

: X Save and exit (save only if the file changes)

These are the details of the command that vi does not save the forced exit in Linux. Have you gained anything after reading it? If you want to know more about it, you are welcome to follow the industry information!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report