Thursday, March 21, 2013

How to change a HOSTNAME on mac

If you have to change a hostname of your Mac do this in Terminal:

1. Check your hostname with the one of these commands:
hostname
echo $HOSTNAME
uname -n

2. Set a new hostname:
sudo scutil --set HostName yourNewHostname