Posted By

stiobhart on 06/29/09


Tagged

osx cli terminal spotlight mdutil


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

heinz1959


OSX - enable disable spotlight indexing


 / Published in: Bash
 

how to enable or disable spotlight disc indexing from the terminal. all the following work on root "/". to specify another volume, put its path at end of the command

  1. // disable spotlight indexing
  2.  
  3. sudo mdutil -i off
  4.  
  5. // enable spotlight indexing
  6.  
  7. sudo mdutil -i on
  8.  
  9. // delete existing spotlight indexes
  10. sudo mdutil -E
  11.  
  12. // some other options: -s = display status, -v = verbose

Report this snippet  

You need to login to post a comment.