Change the hostname in Mac OS X [osx]
When I log into the network at my job my Mac’s hostname always turns to:
I have my local hostname set to:
So What I would like to do is set my Mac’s hostname to my local hostname. You can do this all from Terminal in a single line.