1. A Hostname files is saved at “/etc/sysconfig/network”
2. Open and change the hostname in “network” files like :
[root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
#HOSTNAME=localhost
HOSTNAME=tarigan
3. Save
4. Logout First and Login again
[root@localhost ~]# logout
[root@tarigan ~]# <== DONE
©.dat-2010