How to set host/computer name permanently in Mac OS X

To set host/computer name permanently or temporarily in Mac OS X , mac os provides a command line utility "scutil". This tool helps in setting the host name of your mac permanently.


sudo scutil --set HostName  MyNewMachintoshHostname

This will set your mac host name to 'MyNewMachintoshHostname' permanently

Ex2 :

sudo scutil --set ComputerName  MyNewMachintoshComputerName

This will set your mac computer name to 'MyNewMachintoshComputerName' permanently.

Popular posts from this blog

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?