tldr/pages.zh/osx/mdutil.md

16 lines
313 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# mdutil
> 管理 Spotlight聚焦搜索 用于搜索的索引数据.
- 显示指定卷 ('/') 的索引状态:
`mdutil -s {{/}}`
- 打开 / 关闭给定卷的 Spotlight 索引:
`mdutil -i {{on|off}} {{指定卷文件夹}}`
- 清除索引数据并重新建立索引:
`mdutil -E {{指定卷文件夹}}`