Tuesday, October 13, 2020

How to change the hostname of machine

Follow either of following three steps

1. on shell prompt use command  hostname newname

2. in /etc/hosts mark entry against 127.0.0.0 newname

3. in /etc/sysconfig/network against HOSTNAME=newname 

the last one is permanent solution.


No comments:

Post a Comment