When I open the Test.java file with VI under Linux
[Email protected] tmp]# VI Test.java
The following information will appear:
DOS Code
- E325:attention
- Found a swap file by the name . TEST.JAVA.SWP "
- Owned By:root dated:wed Dec 7 : £º
- File name:/var/tmp/test.java
- Modified:yes
- User Name:root host Name:localhost
- Process ID: 26153 (still running)
- While opening file "Test.java"
- dated:wed Dec 7 :xx:
- Newer than swap file!
- (1) Another program may editing the same file.
- If This is the case, being careful not to end
- Different instances of the same file when making changes.
- Quit, or continue with caution.
- (2) an edit session for the this file crashed.
- If This is the case, use ": Recover" or "Vim-r Test.java"
- To recover the changes (see ": Help Recovery").
- If you do this already, delete the swap file ". TEST.JAVA.SWP "
- To avoid the this message.
- "Test.java" 11L, 237C
- 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