Skip to content
Home » Operating System » UBUNTU SERVER 20.10 – FIND/CHANGE THE HOSTNAME

UBUNTU SERVER 20.10 – FIND/CHANGE THE HOSTNAME

To find the host name of your server, from the command prompt

Type:
hostnamectl

The name will appear

To change the hostname
Type:
sudo hostnamectl set-hostname NewNameGoesHere

To verify the new server name stayed,
Type:
hostnamectl

That’s it!