Because we launched Nano using sudo, any changes will be authenticated and saved directly to the original hosts file, without the need to copy it outside of its home directory.Ĥ. Just as we did with the TextEdit method above, we can add, edit, or remove hostname mappings at will. To navigate and edit the file in Nano, use the arrow keys on your keyboard.ģ. You’ll now see the hosts file open in the Nano editor or vim or another editor of your choice. As with all sudo commands, you’ll need to also enter your admin password to execute it: " sudo nano /private/etc/hosts“Ģ.
#MAX OSX ADOBE ACTIVATE SIDO HOW TO#
Your Mac will then come through the speakers saying “DNS cache has been flushed.” How to Edit Your Mac Hosts File In Terminal With Nano
![max osx adobe activate sido max osx adobe activate sido](https://helpx.adobe.com/content/dam/help/fr/download-install/using/install-mac-elements/jcr_content/main-pars/procedure/proc_par/step_3/step_par/image/lic-macos-activatesoftware.png)
With the modified hosts file now in place, fire up your Web browser to test the changes. Choose Replace and then enter your administrative user password to authenticate the transfer. When you drop the hosts file back in its original location, macOS will ask you what to do about the unmodified hosts file that’s already there.