Change Mac OS hostname

The hostname command was still displaying 'pc14.home' although I did change it in the System Preferences | Sharing panel where it was name 'myimac.local'.

Using:

sudo hostname myimac

only changes it in the current shell

The solution I found to change it for good is to use

sudo scutil --set HostName "myimac"

Popular posts from this blog

Soving AccessDenied on Google Cloud Storage domain mapping

Fixing "DerInputStream.getLength(): lengthTag=109, too big" in Android Studio

Simple Samba setup on Lubuntu