This site is brought to you by the Electrical and Computer Engineering department

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Current »

To temporarily change the Hostname of your device via the terminal 

Set or Change Hostname (via Terminal) - OS X Mavericks or newer
  • Open Terminal by going to Applications, then Utilities, and select Terminal
  • The type the following:

sudo hostname -s new_hostname
For example:  sudo hostname -s ECE-MAC


To permanently change the Hostname of your device via the terminal

Set or Change Hostname (via Terminal) - OS X 10.6 - 10.10
  • Open Terminal by going to Applications, then Utilities, and select Terminal
  • The type the following:

sudo scutil –-set HostName new_hostname
For example: sudo scutil –-set HostName ECE-MAC

Note:  It may also be necessary to perform the following commands to solidify the changes

sudo scutil --set ComputerName <hostname>
For example: sudo scutil --set ComputerName ECE-MAC
sudo scutil --set LocalHostName <hostname>
For example: sudo scutil --set LocalHostName ECE-MAC

 

 
 

 

 

  • No labels