How to Edit the OSX hosts file

1) Open a Terminal (Applications -> Utilities -> Terminal).
2) Edit the hosts file (Type your user password when asked).

$ sudo nano /private/etc/hosts

3) Press press control-o to save the file.
4) Press enter on the filename prompt.
5) Press control-x to exit the editor.

Leave a Reply