How To Change Linux Hostname Redhat/CentOS/Fedora
In this post we are going see how can we change the host name of a Linux machine.
Just follow the steps below:
- 1- Find and edit the following file "/etc/hosts"
- 2- Edit /etc/sysconfig/network
Save and close the file.
- 3- Type the following command:
Your new hostname should be set now.