Host File in Windows and Mac

  • Edit Host file in Mac OS:
-Open Terminal and type the command:  sudo nano /private/etc/hosts
And press Enter key.
Type your user password when prompted.
 – Edit the hosts file. The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 – localhost).
You can navigate the file using the arrow keys.
– Save the hosts file. When done editing the hosts file, press control-o to save the file.
Press enter on the filename prompt, and control-x to exit the editor.
  • Edit Host File in Windows:
-Navigate to folder “C:\Windows\System32\drivers\etc”. Host file is displayed there.
-Right click on Host file and select “Send to Desktop”.
-Open Host file, edit and save “CTRL+S”.
Note: Make sure in Win 7, UAC (User Account Control) is disabled, otherwise host file is not editable.
To disable USA, navigate to “Control Panel\User Accounts\User Accounts”
Now open “User Accounts” and then click on “Change User Account Control Settings”. Set the Notification level to lowest (near to Never notify) and click “OK” button. To update settings, you need to restart the machine.

No comments:

Post a Comment