“vi /etc/sysconfig/network”, change HOSTNAME value to the new hostname
“hostname NEW_HOST_NAME” to change it for the current sessions
“vi /etc/hosts”, change the old value to point to the new hostname
“service network restart” to restart the networking service and apply all the new changes