How to set a hostname in Ubuntu 18.04

Back in the day, it was as easy as changing the /etc/hostname.  Now you need to run a command to make this happen.

To check your hostname type:  hostnamectl


To change your hostname type:  hostnamectl set-hostname www3

That will do the trick!

Leave a Comment

Your email address will not be published. Required fields are marked *