How to change the hostname in Linux

This article describes the how the change the hostname in Linux machine. Let’s start. Open the network file. # sudo vi /etc/sysconfig/network Modify the HOSTNAME= value with your domain name. Example hostname is “myhostname” HOSTNAME = myhostname To access with in the server add it in /etc/hosts file myhostname Run the “hostname” command. This command […]