fbpx

CHANGE HOST NAME IN UBUNTU

CHANGE HOST NAME IN UBUNTU

CHANGE HOST NAME IN UBUNTU

Many times we do installation without changing default values and one of them is hostname in operating system. In this post easy steps provided to change the host name of UBUNTU based operating system.

Step 1: edit hostname file.

Logon as root or sudo user to edit the hostname file give following command,

vi /etc/hostname

3-22-2013-9-14-32-AM

3-22-2013-9-17-55-AM

step 2: edit host file

Edit the /etc/hosts file , remove old hostname and add new hostname. Save the file.

3-22-2013-9-20-24-AM-300x62

3-22-2013-9-21-06-AM-300x63

Step 3: Reboot the system and verify the change