Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 401 Bytes

setting-up-hostname-in-macos.md

File metadata and controls

15 lines (11 loc) · 401 Bytes

Setting up hostname in macOS

Using System's Preferences to change the computer name did not change the hostname that is typically displayed inside the terminal. Using hostname might display an auto-assigned and undesirable value.

This is what fixed it:

sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"

That's it.