连接主机...
连接主机成功
Last login: Tue Feb 7 17:46:22 2023 from 125.89.55.98
root@ubuntu:~# sed -i "/bt.cn/d" /etc/hosts echo "103.179.243.14 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn" >> /etc/hosts
sed: can't read echo: No such file or directory
sed: can't read 103.179.243.14 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn: No such file or directory
root@ubuntu:~# sed -i "/bt.cn/d" /etc/hosts
root@ubuntu:~# echo "103.179.243.14 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn" >> /etc/hosts
root@ubuntu:~# ^C
root@ubuntu:~# sed -i "/bt.cn/d" /etc/hosts echo "103.179.243.14 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn" >> /etc/hosts
sed: can't read echo: No such file or directory
sed: can't read 103.179.243.14 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn: No such file or directory
root@ubuntu:~# -i "/bt.cn/d" /etc/hosts
-i: command not found
root@ubuntu:~# sed -i "/bt.cn/d" /etc/hosts
root@ubuntu:~# echo "103.179.243.14 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn"
103.179.243.14 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn
root@ubuntu:~# /etc/hosts
-bash: /etc/hosts: Permission denied
这个是输入和输出的结果 |