Skip to content

Instantly share code, notes, and snippets.

@Bhavdip
Last active April 16, 2017 05:53
Show Gist options
  • Select an option

  • Save Bhavdip/0da08da8454918eb44263d2f48d41a89 to your computer and use it in GitHub Desktop.

Select an option

Save Bhavdip/0da08da8454918eb44263d2f48d41a89 to your computer and use it in GitHub Desktop.
[How to edit the Host file in Mac using terminal]#tags:MacOS
1. Open the Terminal window
2. Type the command 'sudo nano open /private/etc/hosts'
3. Press the enter
4. It will prompt the sudo password
5. Enter the password
6. Its open the vim editer where you can modifiy and enter the new entry using control+ command.
7. The command will display at end of console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment