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'.


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

Simple Samba setup on Lubuntu

Soving AccessDenied on Google Cloud Storage domain mapping

USB Foot Switch II - "Usb HIDKB Not connected"