使用sed更改主机名
Hujiuxiang
・1 分钟阅读
更改主机名
sed -i 's/oldname/newname/' /etc/hosts /etc/hostname
使用sed,你可以随时替换字符串。