Editing the Hosts File in Mac OS X

  1. Launch Terminal, found in /Applications/Utilities/ or launched through Spotlight,
  2. Type the following command at the prompt:
    sudo nano /private/etc/hosts
  3. Enter the administrator password when requested,
  4. Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications,
  5. When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano,
  6. Quit out of Terminal when finished.

No comments:

Post a Comment