macOS-mdls列出文件元数据命令
使用 mdls 获取文件的UTI类型
获取文件的UTI类型,媒体类型,文件类型
$ mdls /Library/Desktop\ Pictures/Aqua\ Blue.jpgkMDItemContentType = “public.plain-text”
获取APP的Bundle ID
$ mdls -name kMDItemCFBundleIdentifier -r /Applications/Notes.appcom.apple.Notes
使用 file 命令查看文件的 mime 类型
1 |
|
macOS-mdls列出文件元数据命令
https://dnacore.github.io/post/f6f86c2b-31a6-4d39-a6c2-cef4f999b95c.html