Learn how to edit Host file on Mac OS X EL Caption.
You can edit the host file using TextEdit, in that the host file appears as simple plain text document.
To find the Host File:
Step 1: Open the finder and in the finder’s menu bar, select Go→ Go to folder.
Step 2: In the Go to folder box, type the following location.
And click Go button.
Step 3: A Finder window will open and select the mac’s host file.
Step 4: Open the host file by double clicking it. The file will open in the TextEdit. It will contain Default IP values for local host and broadcast host.
Step 5: To edit it, you can add your own lines of code for broad cast.
We edit this host file to block the access to specific website. So you can type the IP address of the website that you wish to block.
Step 6: After completing the changes to the host, you can save the current location to the desktop.
Step 7: Then drag and drop the host file to the original location.
Step 8: Then repeat the same step Go→ Go to folder and drop the edited file to the original location.
SEE ALSO : What is “Other” Storage Space in Mac OS X. How to Clear It
How to edit Host file on Yosemite & Mavericks?
Here i have given the ways to edit Host file on the Mac Yosemite and Mavericks.
Step 1: At first, Open the terminal in Applications/Utilities or try to launch the terminal through spotlight.
Step 2: To back up hosts file in the document folder, type the following command.
sudo cp /private/etc/hosts ~/Documents/hosts-backup
Step 3: To open the host file, type the following command in the command prompt.
sudo nano /private/etc/hosts
Step 4: You will be asked to enter the administrator password, so type the password but you cannot see the password in the command prompt.
Step 5: The host file will be loaded, after that use the arrow keys to navigate the bottom of the file to make the notification.
Step 6: After finishing the above step, press CTRL+O with ENTER/RETURN to save the changes to /private/etc/hosts and after that press CTRL+X to exit.
Step 7: Clear the DNS cache and verify the host modification.