Change HostName in Linux Machines

Change HostName in Linux Machines

Edit  /etc/hostname , make the name change, save the file.

You should also make the same changes in /etc/hosts  file

Run sudo /etc/init.d/hostname restart or sudo service hostname restart

Leave a Reply

Your email address will not be published. Required fields are marked *

*