login about faq

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!

asked May 11 '11 at 21:13

pumpkinskin's gravatar image

pumpkinskin
1613412


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

Press COMMAND+SPACEBAR
Type TERMINAL <Enter>
Type: sudo nano /private/etc/hosts
Edit the file
CONTROL O to save
CONTROL X to exit

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

link

answered May 12 '11 at 10:24

Steve's gravatar image

Steve
2.3k163055

1

agreed. Nothing more to say on that one.

(May 14 '11 at 11:52) AlexMVP AlexMVP's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:
    [text](http://url.com/ "title")
  • image:
    ![alt text](/path/img.jpg "title")
  • numbered list:
    1. Foo
    2. Bar
  • Code:
    • Within a paragraph:
      `code`
      surround code with grave accents (backticks)
    • Code snippet:
      Select the text and use the button on the icon of zeros and ones
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14
×13
×4

Asked: May 11 '11 at 21:13

Seen: 4,362 times

Last updated: May 14 '11 at 11:52

groovyAnswers © 2007 - 2011 All Rights Reserved | Privacy | Contact