Mac OS X Commands:mdutil
命令: mdutil管理Mac OS X的Spotlight的运行停止数据库维护等。
当管理员要维护一些数据的时候可以暂时停止Spotlight服务程序,这样他不会干扰你的备份数据工作。
停止: mdutil -i off / #停止Volume / 上的Spotlight索引服务
运行: mdutil -i on / #启动Volume / 上的Spotlight索引服务
有的时候Spotlight的数据库混乱需要重建,那么使用这个命令:
删除:mdutil -E / #删除并重建Volume / 上的Spotlight索引数据库
我的机器上的输出:
admin$ sudo mdutil -s /
/:
Status: Indexing Enabled
又一个:
admin$ sudo mdutil -i off /
/:
Indexing disabled for volume.
************************************
Spotlight management command: mdutil
Description: manage the metadata stores used by Spotlight
Help: man mdutil
Synopsis: mdutil [-pEs] [-i on|off] volume ...
: turn spotlight off/on
-i off/on {volumename}
: Show spotlight status of a volume
-s {volumename}
: erase and rebuilt metadata database
-E
页:
[1]