Mac OSX – What is the difference between /etc/hosts and /private/etc/hosts

They are the same file, /etc map to /private/etc

Terminal

$ cd /
$ pwd
/

$ ls -lsa
8 lrwxr-xr-x@  1 root    wheel    11 Aug 20 07:11 etc -> private/etc

References

  1. What’s the “Private” directory in OS X for
author image

mkyong

Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities. Read all published posts by

Comments

avatar
3000