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