macOS

mdutil

SafeSpotlight index control

mdutil -E /

Checks (-s) and rebuilds (-E) the Spotlight index — fixes missing results and runaway mds processes.

Examples

  • mdutil -E /Rebuild the index

Syntax

mdutil -s <vol>(状態) / mdutil -E <vol>(再構築)

Before you run it

Rebuilds cost CPU for a while.

Related commands

  • mdfindSpotlight search (CLI)
  • mdlsShow file metadata

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store