How to Change Hostname (Computer Name) in Ubuntu 14.04

3 years ago
Posted by andri
Board Tutorial
582 views


This simple and brief tutorial is going to show you how to change the Hostname / Computer name in Ubuntu 14.04 Trusty Tahr.

The default name was set when you were installing Ubuntu. You can easily change it to whatever you want in both Desktop & Server by editing the hosts and hostname files. Below is how:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the below command:

 hostname NEW_NAME_HERE 

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

Source :ubuntuhandbook.org