Fork me on GitHub

Sunday, January 13, 2008

How to edit the hosts file on Mac OS X

posted by Lars Hundebøl # 1:13 p.m.
Sometimes I need to test SharePoint web applications on Mac OS X (Safari), and for that I need edit the hosts file. And the process of doing so is not as strait forward (for me), as on a Windows PC. In order to edit the hosts file do the following: 1. Open the terminal klient 2. Browse to the hosts file cd \ cd etc 3. run the pico hosts as administrator sudo pico hosts enter the password of the administrator From here it is possible to edit the hosts entry. Exit using the ^X command (Ctrl+x).

Leave a comment

Your name

Your e-mail (will not be displayed)†

†Your e-mail will never be displayed and only used on the site to display your gravatar (if you got one), and as a means to potentially get back to you, if I have any feedback or questions regarding your comment.

all posts