Comparing to Linux systems OSX default temporary directory seems to be in a weird path.
I want to know why that is, at least how is this organized. Here are my observations:
My echo "$TMPDIR"
output is /var/folders/pd/l3jkqy0s6_59p4vhlbx3__dr0000gp/T/
.
When I cd
to /var/folders/
and ran tree
from it and noticed the following structure/pattern:
├── pd
│ └── k7jkgy2s3_99p4vhlbx3__dr0gp
│ ├── 0
│ │ ├── com.apple.CalendarAgent
│ │ ├── com.apple.LaunchServices-231-v2.csstore
│ │ ├── ....
│ ├── C
│ │ ├── com.avastsecurelinehelper
│ │ │ └── com.apple.metal...
│ │ ├── avast.passwords.PasswordsHelperApp
│ │ │ ├── avast.passwords.PasswordsHelperApp
│ │ ├── ....
│ └── T
│ ├── AudioComponentRegistrar
│ ├── TemporaryItems
│ ├── VSCode\ Crashes
└── zz
├── 55g2846x3r5_sp1w7xvd81ch0000gn
│ ├── 0
│ │ ├── com.apple.LaunchServices-231-v2.csstore
│ │ ├── ...
│ ├── C [error opening dir]
│ └── T [error opening dir]
├── zyxvpxwx6ckaln_n000006w00011q
├── ...
The TLDs like pd
and zz
are noticeable. Also the single charactered directories like 0
, C
, T
.
What do they mean or what convention do they follow?
sudo tree
and you'll not get the[error opening dir]
message.man confstr
.