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!
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!