How To Change Your Hostname In Ubuntu

This post will be a quick to the point tutorial on how to change hostname in Ubuntu. Simply execute the following commands and instructions and everything will function nice and smoothly.

sudo nano /etc/hostname

Change the value to your desired hostname, save and exit. Now you just need to update your hosts file and everything will work fine.

sudo nano /etc/hosts

Simply change anywhere you see your old hostname to your new one, save and exit.

You can also temporarily change hostname by simply typing the following command instead however your hostname change will only last until reboot if using this command.

sudo hostname new-hostname-here


Recent Incoming Guest Searches:

5 Responses to “How To Change Your Hostname In Ubuntu”

  1. Wavatar

    Wow that was unusual. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyways, just wanted to say wonderful blog!

  2. Wavatar

    After study many of the blog articles in your web site now, i really as if your method of blogging. I bookmarked it to my bookmark website list and will also be checking back soon. Pls look at my internet site also and make me aware how you feel.

  3. Wavatar

    Youre so cool! I dont suppose Ive read anything in this way prior to. So nice to locate somebody by original thoughts on this subject. realy thank you for beginning this up. this fabulous website can be something that is required on the net, an individual with a bit of originality. helpful project for bringing new things to your internet!

  4. Wavatar

    I am constantly browsing online for content articles that can benefit me personally. Thanks!

  5. Wavatar

    Hello there, I discovered your online web site by way of Google acquire the best for a related topic, your internet site emerged, it appears fantastic. We have saved it during my google social bookmarks.


Leave a Reply

Please type the characters of this captcha image in the input box

You must type in the above characters to post a comment