Changing the hostname of your macOS computer from the command line terminal

  1. Knowledge Base
  2. Operating System
  3. Systems Administration
  4. MacOS
  5. Changing the hostname of your macOS computer from the command line terminal

Type in the following commands in order to change the hostname of your macOS computer from the command line.
When entering the commands replace the “name” with the desired computer name.

  • scutil –set ComputerName “name”
  • scutil –set LocalHostName “name”
  • scutil –set HostName “name”
  • scutil –get HostName

Leave a Reply

Your email address will not be published. Required fields are marked *