scutil command

scutil command
Using scutil in macOS
scutil is an advanced macOS command used for confirming and updating system configuration.
Change hostname with scutil
{% highlight command %} $ sudo scutil –set HostName “macbook” {% endhighlight %}