Change the ComputerName of a machine using OS X
The scutil
command in conjunction with --set ComputerName
can be used to change the ComputerName (the "user-friendly" name) of a machine that is using OS X.
$ scutil --set ComputerName "My New Mac"