Originally Posted by casualzone
Plan to set my hostname in my linux centOS.
Should I set in /etc/hosts or /etc/sysconfig/network ?
Any difference to set in both place?
If you want to set hostname, I suggest you to set in following way.
# sysctl kernel.hostname=your.hostname.com
You can also set in /etc/hosts and /etc/sysconfig/network, But many times it will not be reflected in all the places.
After setting the hostname as specified above, you can check it using