Change the hostname on Mac OS X

Posted About 13 years ago. 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
Over 11 years ago
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)