Last active
March 22, 2019 13:33
-
-
Save acodega/fddb8178325bcd90fcce50631a212000 to your computer and use it in GitHub Desktop.
Setting Mac hostnames
This file contains 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
echo "Enter new name:" | |
read newmacname | |
sudo scutil --set ComputerName "$newmacname" | |
sudo scutil --set HostName "$newmacname" | |
sudo scutil --set LocalHostName "$newmacname" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment