Y a-t-il des différences entre /etc
et /private/etc
sur Mac OS X ?
Réponse
Trop de publicités?Sur i386/darwin10.0/10.7.0 :
% ls -aFGl / | grep private
lrwxr-xr-x@ 1 root wheel 11 28 avr 2010 etc@ -> private/etc
drwxr-xr-x@ 6 root wheel 204 28 avr 2010 private/
lrwxr-xr-x@ 1 root wheel 11 28 avr 2010 tmp@ -> private/tmp
lrwxr-xr-x@ 1 root wheel 11 28 avr 2010 var@ -> private/var
% ls -aFGl /private
total 0
drwxr-xr-x@ 6 root wheel 204 28 avr 2010 ./
drwxrwxr-t 32 root admin 1156 19 jan 10:04 ../
drwxr-xr-x 95 root wheel 3230 7 avr 07:06 etc/
drwxr-xr-x 2 root wheel 68 27 jan 2010 tftpboot/
drwxrwxrwt 9 root wheel 306 15 avr 09:03 tmp/
drwxr-xr-x 26 root wheel 884 28 avr 2010 var/
Donc /etc
est un symlink. Vers /private/etc
, qui est un répertoire. Ils ont tous les deux le même contenu. Il en va de même pour /tmp
et /var
.