Change the hostname on Mac OS X

Updated . Posted . Visible to the public.

To set the hostname of your Mac, run the following command in Terminal:
sudo scutil --set HostName my-new-hostname.local

Check it by typing:
hostname

Dominik Schöler
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Dominik Schöler to makandra dev (2011-05-09 11:58)