![]() ![]() 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“Ģ. To get started, launch Terminal, type the following command, and press Return.The steps in the previous section are easy enough, but if you want to avoid copying the hosts file you can edit it directly in Terminal using the UNIX Nano Text Editor, which is built into macOS. #Connect mac to windows domain host cannot be found how toYour Mac will then come through the speakers saying “DNS cache has been flushed.” How to Edit Your Mac Hosts File In Terminal With Nano To get your Mac to clear your DNS cache, then confirm it’s cleared your cache by echoing a confirmation, enter these two commands separated by a semi-colon as shown here: “ sudo killall -HUP mDNSResponder say DNS cache has been flushed“. ![]() Note: You will need to enter your admin password to execute this command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |