[CentOS] hostname on centos 7.1

Jerry Geis

geisj at pagestation.com
Tue Apr 21 12:43:15 UTC 2015


I have a file /etc/sysconfig/network and in the file is

cat  /etc/sysconfig/network
# Created by anaconda
HOSTNAME=zotac_c7.msgnet.com
[root at localhost ~]#

I rebooted and the prompt is still localhost ?

What is the new thing in CentOS 7 to set the host name
such that then the prompt is correct also?

Thanks

Jerry



More information about the CentOS mailing list