Why is/ tmp a symlink to/ private/tmp?
/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.
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 ...
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
Possibly a person with even more OS X history can think of something extra practical.
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
/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
/sbin and also