Edit the hosts file using the nano editor in Terminal.
- Launch Terminal , found in
/Applications/Utilities/
or launched through Spotlight - Type the following command at the prompt:
sudo nano /private/etc/hosts
- Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
- 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
- When finished, hit
Control+O
followed byENTER/RETURN
to save changes to/private/etc/hosts
, then hitControl+X
to exit out of nano - Quit out of Terminal when finished