How to Change Hostname Ubuntu Server

How to Change Hostname Ubuntu Server - Hi my friends have all had to know How to Change Hostname Ubuntu Server? Well on this occasion I will try to discuss how to How to Change Hostname Ubuntu Server.
This method can also be used in Ubuntu Desktop but using the terminal. Immediately wrote yuk here's how:
Open your terminal by ctrl + alt + t and log in as root with the command:
sudo su
After that change the hostname  edit the old with the new in a way:
vi / etc / hostname
After that we equate the host edit host hostname according to the manner:
vi / etc / hosts.conf
After that reboot your computer or PC.
How to Change Hostname Ubuntu Server
Related : How to Change Hostname Ubuntu Server.