Linux Common Commands 03

Source: Internet
Author: User

The previous article we wrote, how to edit the file, we sometimes, in the editing time, there may be abnormal exit, so that,

Linux will generate a SWP file for this file, and you will be prompted with an error the next time you enter VI mode

This way, even if you press ENTER to enter the file, and then edit the file, when you enter the VI mode again, you still find that the hint still exists, how to remove

In this tip, first, we view all the files in the current directory (including hidden files) by command

Linux command: Ls-a Show all Files (including hidden files)

We will find that the directory does not know when, more than a SWP file, this is the Linux in the VI mode, an abnormal exit generated by a file,

Every time we enter, there are error prompts, this file is also a mischief, so as long as we delete this file, we enter the VI mode will not appear

That's the wrong tip.

Delete SWP file: Rm-rf. text.txt.swp

Linux Common Commands 03

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.