Set OS X hostname from the commandline

1 · RvE · Dec. 5, 2012, midnight
This little snippet helps you change the hostname of a computer running OS X. OS X defines the hostname/computer name in three places and you need to change all of them....