CentOS 7 – Change Hostname

You can use the shell command hostnamectl. in Centos OS to see current configuration information.