OSX - enable disable spotlight indexing


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.