Wednesday, March 31, 2010

Mac: location of hosts file

The hosts file on Mac is located at: /private/etc/hosts
The easiest way to modify it is using pico, you need to have WRITE permissions to do so.

 ~ $ cd /private/etc/
 /private/etc $ pico hosts