Ubuntu下sudo命令执行慢的解决办法

tech2025-05-22  6

1. 进入终端,输入hostname命令查看主机名称:

hostname >>>ubuntu

2. 编辑/etc/hosts文件,将主机名添加进去:

sudo vim /etc/hosts ps: 127.0.0.1 localhost 127.0.1.1 ubuntu

3. 测试sudo命令,此时速度就很快啦

最新回复(0)