How to Change Hostname on Ubuntu 18.04

https://linuxize.com/post/how-to-change-hostname-on-ubuntu-18-04/ To view the current hostname, enter the following command: $ hostnamectl 1. Change the hostname using hostnamectl $ sudo hostnamectl set-hostname linuxize 2. Edit the /etc/hosts file 127.0.0.1 localhost 127.0.0.1 linuxize # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 3. Edit the cloud.cfg file Leggi tutto…