标签:TE network sysconfig conf sha github linux net 基础
[root@brj ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=brj
[root@brj ~]# hostname
brj
[root@brj ~]# hostname oldboy36
[root@brj ~]# sed ‘s#HOSTNAME=.*#HOSTNAME=oldboy36#‘ /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=oldboy36
[root@brj ~]# sed ‘s#HOSTNAME=.*#HOSTNAME=oldboy36#‘ /etc/sysconfig/network -i
[root@brj ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=oldboy36
说说如何修改主机名(分临时和永久)
标签:TE network sysconfig conf sha github linux net 基础
原文地址:https://www.cnblogs.com/Klanti/p/9143160.html