When we first install a new Operating System one of the typical request of the installation process is to set the hostname.
To change the hostname in Ubuntu Linux system, you can follow different procedures.
Editing system configuration files
1. Edit the file /etc/hostname using the vi editor. Modify the old name and set the new one.
$ sudo vi /etc/hostname
2. Edit the file /etc/hosts and replace any ocurrence of the old name with the new one.
$ sudo vi /etc/hosts
3. Reboot the system to make the changes to take effect.
$ sudo rebootContinue reading Change hostname in Ubuntu Linux