1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/osx/mdutil.md

17 lines
396 B
Markdown
Raw Normal View History

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