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
Posted by Dominik Schöler to makandra dev (2011-05-09 11:58)
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