Change Hostname in Linux(Red Hat)

1. Change the value of the HOSTNAME parameter to the new hostname:

# vi /etc/sysconfig/network


2.  Edit hosts file:

# vi /etc/hosts    newhostname

3. Reboot the system.

4. Check that the new hostname is set:

# hostname


About Mariami Kupatadze
Oracle Certified Master Linkedin:

Leave a Reply

%d bloggers like this: