How to Change Hostname on Ubuntu 18.04 Rumi, August 6, 2019 Display the Current Hostname To view the current hostname, enter the following command: hostnamectl As you can see in the image above, the current hostname is set to ubuntu1804.localdomain. Change the Hostname The following steps outline how to change the hostname in Ubuntu 18.04. 1. Change the hostname using hostnamectl… Continue Reading