how to edit the hosts file on macos code example Example: edit hosts file mac terminal sudo nano /etc/hosts