Files
tldr/pages.zh/osx/mdutil.md

17 lines
396 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mdutil
> 管理 Spotlight聚焦搜索用于搜索的索引数据。
> 更多信息:<https://keith.github.io/xcode-man-pages/mdutil.1.html>.
- 显示指定卷('/')的索引状态:
`mdutil -s {{/}}`
- 打开 / 关闭给定卷的 Spotlight 索引:
`mdutil -i {{on|off}} {{指定卷文件夹}}`
- 清除索引数据并重新建立索引:
`mdutil -E {{指定卷文件夹}}`