Modify Hostname

Reference: linuxize

Ubuntu has changed the way you modify your hostname in 19.04

Modify the Cloud.cfg file

Modify the preserve hostname parameter in the cloud.cfg file at /etc/cloud/cloud.cfg

# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: true

Modify the hostname

sudo hostnamectl set-hostname linuxize
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.