Linux Common commands

Source: Internet
Author: User
Tags save file
Force exit Vim

Save exit
(SHIFT + Z) Press two times
First, make a colon (:) Make another letter (x)

Do not save exit
First colon (:) letter (q) exclamation point (! )

Read and write to a file

Press ESC to jump to command mode, and then: W   Save the file without exiting Vi:w. File to save the modification to file without exiting vi:w!   Force save, do not eject Vi:wq  save file and exit vi:wq! Force save file, and exit Viq:  do not save file, exit vi:q! do not save file, Force quit vi:e! Discard all changes, start editing from last save file

Linux Common commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.