Bhavdip
10/6/2016 - 4:03 PM

[How to edit the Host file in Mac using terminal]#tags:MacOS

[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.