# Ubuntu change hostname command #

## The procedure to change the computer name on Ubuntu Linux: ##

### * Type the following command to edit /etc/hostname using nano or vi text editor: ###

<code>sudo nano /etc/hostname</code>
### * Delete the old name and setup new name. ###
    
### * Next Edit the /etc/hosts file: ###
<code>sudo nano /etc/hosts</code>

Replace any occurrence of the existing computer name with your new one.

### *Reboot the system to changes take effect: ###
<code>sudo reboot</code>
