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

/etc/hostname
/etc/hosts
sudo /etc/init.d/hostname restart
sudo service hostname restart

You may also like...

Leave a Reply

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