On Fri, 29 Jun 2007 06:36:20 +0930 Tim ignored_mailbox@yahoo.com.au wrote:
"hostname - show or set the system’s host name"
Does the already provided "hostname" command not work for you?
hostname doesn't make permanent changes. Just like ifconfig, when you reboot everything goes back to what it was before.