怎么用脚本向hosts文件加域名解析? /etc/hostsparse.sh #!/bin/bash filepath='/etc/hosts' chmod -R a+x ${ filepath} if [ ! -e ${ filepath} ];then echo "${filepath} not exist"</