If you configure the OS X computer name in System Preferences, Sharing, Computer Name, but it’s not reflected by /bin/hostname
, then execute sudo scutil --set HostName MYHOSTNAME
and restart.
Home
If you configure the OS X computer name in System Preferences, Sharing, Computer Name, but it’s not reflected by /bin/hostname
, then execute sudo scutil --set HostName MYHOSTNAME
and restart.