mac os what is hosts file for code example Example: view host entires mac terminal sudo nano /etc/hosts