July 24, 2018
How to Edit Hosts File on Mac OS
In this article we will see how to modify or edit the hosts file in the MAC operating system, sometimes you need to modify or make some changes as per requirement. You can access your stored file in the MAC OS traditionally /private/etc/hosts.
How to edit the hosts file on MAC OS-
- Launch terminal application on the OS
- Type the following commands at the command prompt field >>
sudo nano /private/etc/hosts
- Enter the administrator password when requested, you will not able to see these if typed in the command line screen.
- Your host file is open now with nano, use the navigation key to the bottom and make your hots file change
- After modification hit on the keyboard ctrl+o followed by entering to make it change (Save)
- Now click Ctrl+ exit to out of nano command screen
“You should verify your change with ping, safari, and other networks.”
If you enjoyed this post, please consider following us on Facebook and Twitter.