Linux下vi操作found a swap file by the name

当我在linux下用vi打开Test.c文件时

[[email protected] tmp]# vi Test.c

会出现如下信息:


Linux下vi操作found a swap file by the name

原因是使用vi操作Test.c文件时出现了异常中断,所以在所以在当前目录下产生了一个.Test.c.swp文件

注:以.开头的文件就是隐藏文件

当我把该隐藏文件删除后再次打开就没有上面的警告了。

[[email protected] tmp]# rm .Test.c.swp

rm: remove regular file `.Test.java.swp'? y

[[email protected] tmp]#