OS X: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
add base reference
 
→‎Change hostname that shows up on CLI: add an optional reference
Line 2: Line 2:


* ''Last tested on OS X El Capitan 10.11.5''
* ''Last tested on OS X El Capitan 10.11.5''
* ''Base reference: [http://blog.psyrendust.com/2008/05/23/change-the-hostname-in-mac-os-x-osx/ Larry Gordon]''
* ''Base reference: [http://blog.psyrendust.com/2008/05/23/change-the-hostname-in-mac-os-x-osx/ Larry Gordon], optional reference: [http://osxdaily.com/2012/10/24/set-the-hostname-computer-name-and-bonjour-name-separately-in-os-x/ HostName, ComputerName, and Bonjour Name]''


The hostname doesn't seem to change in spite of changing the computer name in Sharing preference, and NetBIOS names.  This command has to be executed at the CLI to change the hostname.
The hostname doesn't seem to change in spite of changing the computer name in Sharing preference, and NetBIOS names.  This command has to be executed at the CLI to change the hostname.

Revision as of 10:54, 14 June 2016

Change hostname that shows up on CLI

The hostname doesn't seem to change in spite of changing the computer name in Sharing preference, and NetBIOS names. This command has to be executed at the CLI to change the hostname.

$ sudo scutil --set HostName newhostname.local