Setting the hostname on systemd is quite different from setting it on a non-systemd system. With systemd, you'll use the hostnamectl command, which can set more than just the hostname.
This Linux tutorial is a great lesson for those who aspire to get into Linux administration.
Get my new book, "Linux Service Management Made Easy with systemd":
Amazon purchase link:
https://amzn.to/344gxO0
Packt Publishing purchase link:
https://www.packtpub.com/product/linu...