本机 / |
个人 ~ |
系统 /System |
|
|---|---|---|---|
| 应用 | /Applications [1] |
~/Applications [2] |
/System/Applications |
| 缓存 | /Library/Caches |
~/Library/Caches |
/System/Library/Caches |
| 数据 [3] | /Library/Application Support |
~/Library/Application Support |
N/A |
| 配置 [4] | /Library/Preferences |
~/Library/Preferences [8] |
N/A |
| 容器 [5] | N/A | ~/Library/Containers |
|
~/Library/Group Containers [9] |
N/A | ||
| 日志 | /Library/Logs [6] |
~/Library/Logs [6] |
/var/log [6] |
/var/db/analyticsd [7] |
defaults 程序存取的 .plist 文件;少数应用会在 Preferences 放置其他文件Containers 镜像了整个用户文件夹,Group Containers 只镜像了 Librarysudo log erase --all 清除可通过 /Library/Receipts/InstallHistory.plist 或 系统信息 → 软件 → 安装 查看
| 进程 | Receipt 位置 | |
|---|---|---|
| Software Update | softwareupdated |
/Library/Apple/System/Library/Receipts [1] |
| App Store | appstoreagent |
/var/db/receipts |
.pkg 文件 |
Installer |
/var/db/receipts |
ls -lO 查看),需在 Recovery 中或关闭 SIP 后操作/var/folders0: 系统内部用途C: getconf DARWIN_USER_CACHE_DIR (Clang 和 Metal 缓存,Safari Safe Browsing 等)T: getconf DARWIN_USER_TEMP_DIR / $TMPDIRX: 空