Change Computer/Host Name Mac OsX

One of the most common problems that we come across is when the programmer tries to setup the Mac OS X - name/hostname for the computer, since it takes up most space in the Terminal bash prompt and since the default ones are not so fancy, when accessed over the network.

  1. Click the “Apple” menu in the top-left of the screen. Click on “System Preferences.”

  2. Click the “Sharing” icon. At the top of the resulting screen, you will see your current computer name. To change it, click into the field, delete the existing name and enter your desired computer name.

  3. Click on the “Edit” button underneath the computer name field to change the local hostname. The hostname can be used to access your computer over the network as an alternative to using a numeric IP address and is particularly relevant if you are using a network with a mix of Apple Macs and Microsoft Windows PCs.

  4. Close the window to save your changes.

Source Link

Any questions on this, please feel free to ask. We’re here to help…