Are there any differences between `/etc` and `/private/etc`?

Are there any differences between /etc and /private/etc on Mac OS X?

Answers


On i386/darwin10.0/10.7.0:

%  ls -aFGl / | grep private
lrwxr-xr-x@   1 root  wheel        11 Apr 28  2010 etc@ -> private/etc
drwxr-xr-x@   6 root  wheel       204 Apr 28  2010 private/
lrwxr-xr-x@   1 root  wheel        11 Apr 28  2010 tmp@ -> private/tmp
lrwxr-xr-x@   1 root  wheel        11 Apr 28  2010 var@ -> private/var

%  ls -aFGl /private
total 0
drwxr-xr-x@  6 root  wheel   204 Apr 28  2010 ./
drwxrwxr-t  32 root  admin  1156 Jan 19 10:04 ../
drwxr-xr-x  95 root  wheel  3230 Apr  7 07:06 etc/
drwxr-xr-x   2 root  wheel    68 Jan 27  2010 tftpboot/
drwxrwxrwt   9 root  wheel   306 Apr 15 09:03 tmp/
drwxr-xr-x  26 root  wheel   884 Apr 28  2010 var/

So /etc is a symlink. To /private/etc, which is a directory. They both have the same contents. The same is true for /tmp and /var.


Need Your Help

Laravel throws 'The bootstrap/cache directory must be present and writable' error after update

php laravel laravel-5 composer-php

I used 'composer update', which updated a few packages. During the updating process the website still functions. However, after it says 'The compiled services file has been removed', the website do...

Required attribute 'pageBaseType' not found - YSOD when launching my MVC 3 application

asp.net-mvc asp.net-mvc-3

since this morning I keep getting this error when trying to launch my MVC 3 application: