How to change hostname in Debian 8

Share this post to your friends !
  • 1
    Share

How to change hostname in Debian 8
5 (100%) 1 vote[s]

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.

how-to-change-hostname-in-debian-8 How to change hostname in Debian 8
Using the hostnamectl command to change 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 hostname command.

hostname

2. Use the hostnamectl command to change the hostname.

hostnamectl set-hostname systemmen

3. Step 3: Exit the current connection.

exit

4. Log in again

5. Check the new hostname

Conclusion

Using the 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 liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.


Share this post to your friends !
  • 1
    Share
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.