Very simple to do this from command line which is what we’re going to do today.
- Login to your server
- Make sure you’re the root user
sudo su -
3. Run the following command (make sure to change yourservername to whatever you want it to be):
hostnamectl set-hostname yourservername
And that’s it! Really simple stuff!
Have an amazing Builditlinux day!