Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to access host files?

how to access host files?

iMac, Mac OS X (10.5.8)

Posted on Jan 7, 2014 11:35 PM

Reply
6 replies

Jan 8, 2014 12:39 AM in response to NBethesda

Easy and not depends on your software version:

press Shift+cmd+G while your finder window is open and active, you will get a new window with the field where you can write /etc/hosts

Anyway to edit hosts file you should open it with the sudo command, this can be done in terminal window, not in Finder. Also easy and can be done next way:

press Shift+Cmd+U while Finder window is open and active, then choose Terminal.app, and after it opens enter sudo nano /etc/hosts. You will be asked for password - this is the password you enter then you installing new application. You should know few commands to edit your hosts file:

  1. Previoius page/Next Page of the file - Ctrl+Y/Ctrl+V
  2. Add record - Input the text you need on the last free line of the file and then press Ctrl+O
  3. Delete record - put cursor on the line you want to delete and press Ctrl+K
  4. Undo - Ctrl+U
  5. Exit - Ctrl+X

After edit your hosts file you should update DNS records - in terminal window enter the command dscacheutil -flushcache

But if you really don't know what are you doing, my advice is do not touch your hosts file, ask for professional to do his job. Just like I'm doing usually. )))

how to access host files?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.