How to Edit the OSX hosts file
by Jon Hibbins on 13 January 2011
Filed under: OSX, Platform, Quick Tips, Software Development, Unix/Linux
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.