Mac Won't Remember Hostname in Terminal After Reboot, gives 'unknown...' I'm trying to set my hostname for my mac.  Currently it's unknown002374e31ebd.

I've tried setting it with

sudo hostname -s Steve-Mac


Which will work for all future terminal sessions.  However, if I restart, it goes back to unknown

How can I get it to keep this setting?
Setting the hostname via the Terminal is not permanent.

From the hostname manpage:


  DESCRIPTION
  The hostname utility prints the name of the current host. The super-user can set the hostname by supplying an argument. To keep the hostname between reboots, run `scutil --set HostName name-of-host'.


Alternatively, set the hostname in your System Preferences, under the Sharing section.