There is a problem with the Linux write Java program

Source: Internet
Author: User

When I open the Test.java file with VI under Linux

[Email protected] tmp]# VI Test.java

The following information will appear:

DOS Code
  1. E325:attention
  2. Found a swap file by the name . TEST.JAVA.SWP "
  3. Owned By:root dated:wed Dec 7 : £º
  4. File name:/var/tmp/test.java
  5. Modified:yes
  6. User Name:root host Name:localhost
  7. Process ID: 26153 (still running)
  8. While opening file "Test.java"
  9. dated:wed Dec 7 :xx:
  10. Newer than swap file!
  11. (1) Another program may editing the same file.
  12. If This is the case, being careful not to end
  13. Different instances of the same file when making changes.
  14. Quit, or continue with caution.
  15. (2) an edit session for the this file crashed.
  16. If This is the case, use ": Recover" or "Vim-r Test.java"
  17. To recover the changes (see ": Help Recovery").
  18. If you do this already, delete the swap file ". TEST.JAVA.SWP "
  19. To avoid the this message.
  20. "Test.java" 11L, 237C
  21. Press ENTER or type command to continue

The reason is that I had an unexpected interrupt when I used the VI operation Test.java file, so a. Test.java.swp file was generated in the current directory

But I use the LS command to view the directory, but found that there is no such file, and later use the LS-A command to see that TEST.JAVA.SWP is a hidden file.

Note: Files that begin with. are hidden files

When I delete the hidden file and open it again, there is no warning above.

[[Email protected] tmp]# RM. Test.java.swp

Rm:remove regular file '. Test.java.swp '? Y

[Email protected] tmp]#

There is a problem with the Linux write Java program

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.