Jump to content

  •  

Photo
- - - - -

How to: Change Hostname on Ubuntu 14.04

Ubuntu 14.04

  • Please log in to reply
No replies to this topic

#1 Wilson18

Wilson18

    Administrator

  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 05 June 2015 - 08:23 PM

You can change the hostname on ubuntu via the terminal using the following command

sudo hostname <new hostname>

You may need to open up a new terminal window for you to see this change. To make this determinant, you can edit the following two files by replacing the previous hostname to the new one. 

sudo nano /etc/hostname /etc/hosts

If you wanted to give this a reboot, you will see that this is now using the new hostname! 


List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+






Also tagged with one or more of these keywords: Ubuntu 14.04