Thursday, May 23, 2013

Hostname Change on OS X (Mountain Lion)

In Terminal, type the following command:
$ sudo hostname <name-of-hostname> 
or
$ sudo hostname <server.domain.com> 
$ bash

Verification:
$ echo $HOSTNAME