In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "which is the command that editors save not to quit in linux". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope that this article "which command is saved by editors in linux" can help you solve the problem.
Save the command that does not exit: 1. The ": W" command, which can save the edited data without exiting vim;2, ": W!" Command, which forces the edited data to be saved without exiting the vim;3, ": W file name" command, which saves the edited data separately in the specified file, and does not exit vim.
This article operating environment: linux7.3 system, Dell G3 computer.
What is the command for editors to save and not quit in linux
W-Save the file, do not quit vim, and write the edited data to the hard disk file (commonly used)
W file-Save the changes to file separately, do not exit vim, and save the edited data as another file (similar to saving a new file)
W!-Force save, do not exit vim, if the file attribute is "read-only", force to write to the file. However, whether you can write or not has something to do with your permission to the file.
Command mode, and then type: W to save, or you can enter: wq! Save the file and exit.
The following is the save command:
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
This is the end of the content about "which command does not quit is saved by editors in linux". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.