`/etc` 和 `/private/etc` 之间有什么区别?

`/etc` 和 `/private/etc` 之间有什么区别?

Mac OS X 上的/etc和有区别吗?/private/etc

答案1

在 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/

那么/etc符号链接。到,即目录。它们都具有相同的内容。和 也是/private/etc如此。/tmp/var

相关内容