Set Hostname, ComputerName, LocalHostName

Setting Hostname, ComputerName, LocalHostName : Example
scutil --set HostName eddiesnotesmac.local
scutil --set ComputerName eddiesnotesmac
scutil --set LocalHostName eddiesnotesmac

Checking Hostname, ComputerName, LocalHostName : Example
scutil --get HostName
# name associated with hostname and gethostname
scutil --get ComputerName
# user-friendly name for the system
scutil --get LocalHostName
# local (Bonjour) host name

notes: flush directory service cache

String Commands
scutil --set HostName eddiesnotesmac.local && scutil --set ComputerName eddiesnotesmac && scutil --set LocalHostName eddiesnotesmac

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *