使用vi 操作txt文件时出现了异常中断,所以在当前目录下产生了一个 .swp 结尾的隐藏文件
使用 ls -a 命令查看该隐藏文件
解决方法:
出现上图中界面:q! 不保存退出vi文件
输入 rm -f .tang.txt.swp 将该隐藏文件删除
macOS系统:修改hosts配置文件出现下面提示错误:
Found a swap file by the name "/etc/.hosts.swp"
解决方法:
sudo rm -f /etc/.hosts.swp
使用vi 操作txt文件时出现了异常中断,所以在当前目录下产生了一个 .swp 结尾的隐藏文件
使用 ls -a 命令查看该隐藏文件
解决方法:
出现上图中界面:q! 不保存退出vi文件
输入 rm -f .tang.txt.swp 将该隐藏文件删除
macOS系统:修改hosts配置文件出现下面提示错误:
Found a swap file by the name "/etc/.hosts.swp"
解决方法:
sudo rm -f /etc/.hosts.swp