Tuesday, July 12, 2011

How to change the host name in linux Centos

1. login as root user

su -

2. type following command

echo “newhostname” > /proc/sys/kernel/hostname

3. Logout and re-login