终端下的Spotlight

在终端下也可以使用spotlight—-mdfind

找所有metadata包含something的东东

mdfind something

在~/Downloads里找something

mdfind -onlyin ~/Downloads something

找~/Pictures下的所有图片

mdfind -onlyin ~/Pictures "kMDItemKind == *image"

还有mdls查看文件metadata的工具

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.