Change your Computer Name (hostname) in Ubuntu 13.10

October 26, 2013 — 1 Comment

Ubuntu 13.10 hostname

This simple tutorial shows you how to change computer name or hostname in Ubuntu 13.10 Saucy Salamander.

The deafult name was set while installing Ubuntu. You can easily change it to whatever you want in both Desktop & Server by editing the host file.

Tutorial Objectives:

  • Change Computer Name or Hostname in Ubuntu 13.10
  • Enjoy!

To get started, press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run command below to check out your current hostname:


Then run command below the edit the host files. For Ubuntu Server, replace gedit with vim or other editor.

sudo gedit /etc/hostname /etc/hosts

It opens both hostname & hosts files in two tabs. There changes the 2 names to what you want.

change Computer name ubuntu

change Computer name ubuntu

I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to

One response to Change your Computer Name (hostname) in Ubuntu 13.10

  1. Don’t forget to reboot to apply the changes.

    To change the hostname until next reboot:

    $ hostname new-hostname

    The change won’t be visible immediately in your current terminal. Start a new terminal to see the new hostname.

Leave a Reply


Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>