在之前的几篇博客中 , 介绍了 /proc/ 目录下的进程相关目录文件 ;
在根目录下 , 还有着如下目录 :
acct charger default.prop firmware init.usb.configfs.rc lost+found persist res sys
bin config dev init init.usb.rc mnt postinstall sbin system
bugreports d dsp init.environ.rc init.zygote32.rc odm proc sdcard ueventd.rc
cache data etc init.rc init.zygote64_32.rc oem product storage vendor
查看各个目录的详细信息 :
data 目录 是 应用和用户数据目录 ;
adb bootchart local nfc system_de
anr cache lost+found ota tombstones
app connectivity magisk_backup_0b480028f020233d31a2dee75857a11e03983fae ota_package unencrypted
app-asec dalvik-cache media property user
app-ephemeral data mediadrm resource-cache user_de
app-lib dpm misc ss vendor
app-private drm misc_ce system vendor_ce
backup hostapd misc_de system_ce vendor_de
data 目录拥有 rwx 权限 ;
drwxrwx--x 42 system system 4096 2020-11-11 17:10 data
mnt 目录 是 用于挂载其它的设备的目录 ;
drwxr-xr-x 11 root system 240 1973-11-21 15:33 mnt
外设 , SD 卡等设备 , 都挂载在这个目录中 ;
SD 卡真正的原始目录路径是 /storage/self/primary
目录 ;
walleye:/mnt # ls -ll
total 0
drwx--x--x 2 root root 40 1973-11-21 15:33:00.510000100 +0800 appfuse
drwxr-xr-x 2 root system 40 1973-11-21 15:33:00.510000100 +0800 asec
drwxrwx--x 2 system system 40 1973-11-21 15:33:00.510000100 +0800 expand
drwxr-x--- 2 root media_rw 40 1973-11-21 15:33:00.510000100 +0800 media_rw
drwxr-xr-x 2 root system 40 1973-11-21 15:33:00.510000100 +0800 obb
drwx------ 5 root root 100 1973-11-21 15:33:00.513333434 +0800 runtime
lrwxrwxrwx 1 root root 21 1973-11-21 15:33:00.513333434 +0800 sdcard -> /storage/self/primary
drwx------ 3 root root 60 1973-11-21 15:33:00.510000100 +0800 secure
drwxr-xr-x 3 root root 60 1973-11-21 15:33:00.510000100 +0800 user
drwxr-xr-x 2 root root 40 1973-11-21 15:32:59.926666709 +0800 vendor
walleye:/mnt #