当前位置:   article > 正文

mac苹果电脑修改hosts文件_macbook host file

macbook host file

执行vim /etc/hosts文件 命令报错

Found a swap file by the name "/etc/.hosts.swp"
    owned by: root    dated: Wed Mar 31 14:08:08 2021
    file name: /etc/hosts
    modified: YES
    user name: root    host name: VM-0-13-centos
    process ID: 13607
While opening file "/etc/hosts"
    dated: Wed Oct 21 09:11:17 2020
(1) Another program may be editing the same file. If this is the case, 
    be careful not to end up with two different instances of the same
    file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/hosts"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.hosts.swp"
    to avoid this message. 
Swap file "/etc/.hosts.swp" already exists! 
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
 

直接执行此命令
sudo rm -f /etc/.hosts.swp 即可

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/887226
推荐阅读
相关标签
  

闽ICP备14008679号