host file edit in mac code example
Example 1: mac host file
sudo nano /etc/hosts
sudo killall -HUP mDNSResponder
Example 2: edit hosts file mac terminal
sudo nano /etc/hosts
sudo nano /etc/hosts
sudo killall -HUP mDNSResponder
sudo nano /etc/hosts