I noticed that OS X has two hosts files: /private/etc/hosts and /etc/hosts. What is the difference between them?
I was attempting to modify my iMac's hosts file in Terminal and tried the usual
sudo nano /private/etc/hosts, but that brought up an empty page. I thought the hosts file was simply empty. I added the entries I wanted to block and when I tried to Ctrl+O or Ctrl+X, I got the error "No file exists".
After some researching, I tried using
sudo nano /etc/hosts and it brought up what looks like the hosts file (the same entries as I have on my MBP running the same OS when I run
sudo nano /private/etc/hosts).
Is there a difference in the file in
/etc/hosts? Does that mean I have a problem with my iMac's hosts file?