Category Linux

How to Change the Hostname in Ubuntu Linux

You can change an Ubuntu hostname with a single command. There are two things to watch for: /etc/hosts still points to the old name until you update it, and on cloud servers cloud-init may put the old name back after a reboot.…