HOWTO Change hostname and computer name in OS X
From WikiTechia
(Redirected from Change Hostname and Computer Name in OS X)
There is a pretty way to Change Hostname and Computer Name in OS X, and we also show you some ugly ways.
Contents |
Solutions
System Preferences
The easiest way.
- System Preferences -> Sharing
From here you can change the computer name and if you click Edit... you can also change your hostname
Edit the plist file
Here we go straight to edit the XML configuration file.
- Open up preferences.plist located in /Library/Preferences/SystemConfiguration. Locate it in finder or just type up preferences.plist in spotlight.
- This an XML file, look for the tags LocalHostName and ComputerName and change the content of the tags.
scutil
There is a utility, scutil. that can also achieve the same result.
- Fire up a terminal, usually located in Applications/Utilities.
- Type:
sudo scutil --set HostName bingo
replacing bingo with your desired computer name.
- Type:
sudo scutil --set ComputerName bingo
replacing bingo with your desired computer name.

