Just run this command in your terminal and replace “mynewhostname” with your desired hostname:
sudo scutil --set HostName mynewhostname
If you want to know your current hostname just type:
hostname
Just run this command in your terminal and replace “mynewhostname” with your desired hostname:
sudo scutil --set HostName mynewhostname
If you want to know your current hostname just type:
hostname