Created
December 29, 2016 23:15
-
-
Save leveled/a78b7f4bd4992aed4e5b716f0a587764 to your computer and use it in GitHub Desktop.
Change the local/network name on mac os x from the command line
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
$ sudo sysctl kern.hostname=localhost | |
$ sudo hostname -s localhost | |
$ sudo scutil --set HostName localhost | |
$ sudo scutil --set LocalHostName localhost | |
$ sudo scutil --set ComputerName localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment