Overview
Edit Hosts File Using Terminal
- Open Terminal
- Run following command
NOTE!: If you still don’t get desire result, You have to Flush DNS Cache Guide.
NOTE!: If you don’t know how to use VIM, You can check VIM - An Advance Text Editor
Edit Hosts File Using Text Editor
- Open Finder
- Click on Finder’s Menubar
- Click on Go > Go to Folder
-
In the box, type
/private/etc/hosts
location and press Enter. -
Right on
hosts
file and open with your favorite text editor.
NOTE!: If you still don’t get desire result, You have to Flush DNS Cache
You Might Also Like
- How to Edit the Hosts File on Linux
- How to Access Staging Website Without Editing Hosts Files or DNS