In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the linux how to save the modified file related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this linux how to save the modified file article will have a harvest, let's take a look at it.
The method of saving the modified file in linux: 1, using the ": W" command, which is used with the vi command to save the modified file without exiting the vi command; 2. Using the ": wq" command, the command means to save the modified file and exit the vi command.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How does linux save the modified file
Edit mode
After entering the text using vi, press I to start editing the text
Exit edit mode
Press the ESC key and then:
Exit vi
: q! Force to exit the vi command without saving the file
W save the file without exiting the vi command
Wq saves the file and exits the vi command
When interrupting vi mode, go back to the vi error protection solution:
If you do not need to save what you edited last time, delete the temporary file directly: rm .my.cnf.swp
(then you are prompted to confirm the deletion: rm: remove regular file `.my.cnf.swp'?)
Enter y directly and enter, as shown in the following figure
This is the end of the article on "how to save modified files in linux". Thank you for reading! I believe you all have a certain understanding of "how to save modified documents in linux". If you want to learn more, you are welcome to follow the industry information channel.
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.