Jump to content
groovyPost Forums

How to edit the hosts file on mac os x


Go to solution Solved by Steve Krause,

Recommended Posts

Guest pumpkinskin
Posted

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!

  • Solution
Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...