SystemMen - To change hostname in Debian 8, use the hostnamectl command. Debian 8 is among the new OSes, using systemd, based on dbus. This is quite handy when you want to change the hostname of the Ubuntu 16 or CentOS 7 server, etc.
The hostnamectl command to change hostname
The image below is an example of using the hostnamectl command to change the hostname in Debian 8.
You can see the article for Ubuntu 16 that I wrote here, in essence, changing hostnames in Debian and Ubuntu is the same.
1. Display the current hostname with the
2. Use the
hostnamectl command to change the hostname.
hostnamectl set-hostname systemmen
3. Step 3: Exit the current connection.
4. Log in again
5. Check the new hostname
hostnamectl command is quite handy, because you can quickly change the hostname only through a single command. And it is important that you do not need to reboot the operating system.
If you appreciate what we share in this blog, you can support us by:
- Stay connected to: Facebook | Twitter | Google Plus | YouTube
- Subscribe email to recieve new posts from us: Sign up now.
- Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
- Become a Supporter - Make a contribution via PayPal.
- Support us by purchasing Ribbon Lite Child theme being using on this website.
We are thankful for your support.