如何从命令行“获取信息”?


Answers:


13

mdls列出给定文件的元数据属性。尝试这个:

mdls -name kMDItemWhereFroms 文件名

3

根据这篇关于命令行技巧的文章,您可以执行以下操作:

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | grep YOURFILENAME

只需将YOURFILENAME与要检查的文件交换即可。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.