欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

macos shell 我自己亲自做的 renew_index_zhong 重建索引 有大用 有大大用

#!/bin/bash
#
sudo mdutil -i off /
sudo mdutil -E /
sudo mdutil -i on /
(/usr/bin/osascript -e  'display dialog "已创建索引,若要完全生效,可能需要几十分钟至几个小时的时间,主要用于outlook等邮箱搜索失效的情况下!" buttons {"OK"} default button "OK"')


普通分类: