1) Edit file /etc/sysconfig/network using your favourite editor.
2) Look for HOSTNAME=xxxxxx
3) Change the xxxx to the name you wish to set for your computer. (ex:HOSTNAME=abc.com)
4) Save the file and restart the network service. (ex: type service network restart in your shell)
Done! You have just changed your hostname in Linux platform