Tuesday, November 15, 2011

How To Change Your Hostname In Mac OS X Lion

In this tip we will see how to easily change the hostname from the Terminal under Mac OS X Lion. The tip is also workable for older versions of Mac OS X (Snow Leopard, Leopard, etc.).

Getting Started

To view the current used hostname, run simply this command from the terminal:


To change your hostname, issue this command:

sudo scutil --set HostName NEW_HOSTNAME

Replace NEW_HOSTNAME with any name of your choice, then press Enter. The root password is required for executing this command.

That's it!

0 Responses to “How To Change Your Hostname In Mac OS X Lion”

Post a Comment