NightLion Logo

11-02-11

Change the Mac OSX hostname via command line

For some reason, changing the Mac OSX hostname isn’t as simple as changing the name in the share settings. Here is quick guide on manually changing the hostname in terminal.

You must run all three of these commands in order to fully change the computer’s hostname.

1
2
3
sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"
Get Adobe Flash playerPlugin by wpburn.com wordpress themes