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