Skip to content

Instantly share code, notes, and snippets.

@ccampo133
Last active May 2, 2022 14:50
Show Gist options
  • Save ccampo133/bab8af69bfc6e77dc40db7ec842cc051 to your computer and use it in GitHub Desktop.
Save ccampo133/bab8af69bfc6e77dc40db7ec842cc051 to your computer and use it in GitHub Desktop.
Change Mac computer and host name

Change a Mac computer name:

sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"
dscacheutil -flushcache

Reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment