Skip to content

Instantly share code, notes, and snippets.

@tygern
Created January 25, 2016 17:54
Show Gist options
  • Select an option

  • Save tygern/17779a4072373855a03d to your computer and use it in GitHub Desktop.

Select an option

Save tygern/17779a4072373855a03d to your computer and use it in GitHub Desktop.
Set machine name on OSX
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