Jump to content
groovyPost Forums

How to edit the hosts file on mac os x


Guest pumpkinskin

Recommended Posts

Guest pumpkinskin

So I'm a Windows person and I just got a MAC and for the life of me I cant figure out how-to edit my local hosts file so I can hit my local test web server. Who can help me?

I'm running MAC OS X 10.6.7

Thanks!

Link to comment
Share on other sites

The process is fairly simple as long as you don't mind getting into terminal. Here's the steps:

Press COMMAND+SPACEBARType TERMINAL <Enter>Type: sudo nano /private/etc/hostsEdit the fileCONTROL O to saveCONTROL X to exit

Edit the Hosts file like you would Windows at this point. IP address TAB domain name. Hope this helps.

Link to comment
Share on other sites

The process is fairly simple as long as you don't mind getting into terminal. Here's the steps:

Press COMMAND+SPACEBARType TERMINAL <Enter>Type: sudo nano /private/etc/hostsEdit the fileCONTROL O to saveCONTROL X to exit

Edit the Hosts file like you would Windows at this point. IP address TAB domain name. Hope this helps.

 

agreed. Nothing more to say on that one.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...