Mac OS/X One Liner – Changing hostname

To change the Hostname under Mac OS/X 10.5

$ sudo scutil --set HostName servername.example.com