Change hostname in Ubuntu Linux

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 Edit the file /etc/hostname using the vi editor. Modify the old name and set the new one. $ sudo vi /etc/hostname Edit the file /etc/hosts and replace any ocurrence of the old name with the new one. ...

January 14, 2019 · 1 min · Yvoictra