# Why is/ tmp a symlink to/ private/tmp?

Why is /tmp a symlink to /private/tmp on Mac OS X? To put it simply, why isn't /tmp simply a normal directory site, like on Linux or BSD? I recognize just how it functions and also I do not mind it, I'm simply curious about the (historic?) thinking behind it.

0
2019-05-03 18:28:46
Source Share

AIUI it's a holdover from NextStep (which OS X is based upon ), and also NextStep did it to sustain NetBooting. The suggestion was that you can boot from a network-hosted quantity (possibly read-only, and also absolutely shown to various other computer systems ), and also early in the boot procedure place a neighborhood (writable ) quantity on/ exclusive; as g stated, this permitted runtime-modification of/ var and also/ tmp, along with per-computer setups in/ and so on

. This isn't required any longer, as Apple's existing NetBoot system makes use of a darkness disk photo to store adjustments anywhere on the boot quantity. Yet some programs/docs/etc currently think the documents live under/ exclusive, so it would certainly be way too much problem to change them back ...

0
2019-05-07 16:48:18
Source

Not certain concerning the historic factor, yet OS X constantly "restructured" the regular Unix framework. /tmp is not the only point that mosts likely to /private, it additionally has /etc and also /var.

Possibly a person with even more OS X history can think of something extra practical.

0
2019-05-07 16:37:02
Source

I have actually constantly asked yourself the very same point. I can not locate any kind of documents to sustain it, yet commonly this pattern is made use of to make it less complicated to store documents on an additional quantity (e.g. disk drive ). This permits the drive to be placed (e.g. affixed ) right into the documents system in one area. As an example when the drive is placed at /private and afterwards the folders /etc, /tmp, and also /var are after that all situated on that particular various other drive.

What I can not claim is why this would certainly be valuable. It deserves keeping in mind, nonetheless, that these 3 folders have "information" documents such as arrangement, short-lived, log, short-term and also data source documents as opposed to executable code had in the /bin, /sbin and also /usr folders.

0
2019-05-07 16:32:59
Source

Related questions