• 2
pumpkinskin

How to edit the hosts file on mac os x

Question

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!

Share this post


Link to post
Share on other sites

2 answers to this question

  • 4

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.

Share this post


Link to post
Share on other sites
  • 1

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Who's Online   0 Members, 0 Anonymous, 50 Guests (See full list)

    There are no registered users currently online