linux下found a swap file by the name

来源:互联网 发布:海外电视直播软件 编辑:程序博客网 时间:2024/05/19 06:36

linux系统(centos6.5)中vi时报以下错误(网上截图,我的忘保留原图了),我的错误是(found a swap file by the name ".grub.conf.swp")在安装vncserver时编辑vi /etc/sysconfig/vncservers过程中因为错误退出,导致未保存.


进入编辑错误所在文件夹,1.   cd /boot/grub/grub.conf 

2.  ls -a  (因为.grub.conf.swp是隐藏的,所以需要ls -a)查看文件夹下所有文件

3.  rm -f /boot/grub/.grub.conf.swp  删除.grub.conf.swp

 IT is ok!

0 0