Skip to content

mdutil - manage Spotlight metadata stores in macOS — by SS64.com

intermediatepageLink only (©)

Reference for mdutil, the command-line way to check Spotlight indexing and force a rebuild. mdutil -s shows status, -i toggles indexing, and sudo mdutil -E / erases and rebuilds the index of the root volume.

Quick steps

  1. mdutil -s /
  2. sudo mdutil -E /

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on ss64.com

Source: mdutil - manage Spotlight metadata stores in macOS by SS64.com. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

spotlightmdutilreindexmacos

More in macOS

Gatekeeper - Permanently Resetting Quarantine — by jdag and KALLT on MacRumors Forums

intermediateforum

Thread from 2016 where the poster uses xattr -d -r com.apple.quarantine /Applications/APPNAME.app to strip the flag recursively. KALLT notes each download gets a unique quarantine flag, suggests right-click and Open instead, and says an app Gatekeeper reports as tampered with should be raised with its developer. Removing quarantine bypasses Gatekeeper's check, so only do it for software you trust.