Tag: change hostname on centos 7

  • Initial Settings after installing the CentOS 7

    1) To change the hostname permanently, edit the following file: sudo vi /etc/hostname Here you can simply put the name of your system (in my case, I have assigned it CentOS-7): After that, edit the hosts file: sudo vi /etc/hosts Here add the same name, that you have added in the /etc/hostname file, after After reboot, it will display […]