mac os how to go into hosts file code example Example: view host entires mac terminal sudo nano /etc/hosts