Created
January 25, 2016 17:54
-
-
Save tygern/17779a4072373855a03d to your computer and use it in GitHub Desktop.
Set machine name on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export NEW_NAME=[new_name] | |
| sudo scutil --set HostName $NEW_NAME | |
| sudo scutil --set LocalHostName $NEW_NAME | |
| sudo scutil --set ComputerName $NEW_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment