Change Mac Machine Name via Terminal

I needed to change the name of one of my Macs remotely and this is the command to do it: sudo scutil --set HostName [NewHostNameHere]

October 22, 2021 · 1 min · Mark