CentOS change hostname

Posted Posted in Linux

In order to change or set a CentOS 7 machine hostname, use the hostnamectl command as shown in the below command excerpt. #hostnamectl set-hostname your-new-hostname […]