Created
November 8, 2018 02:28
-
-
Save yakirChen/e07262a2a6a223a3176ff3f34ccf0944 to your computer and use it in GitHub Desktop.
macOS Spotlight Command Line Opt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mdutil --help | |
| mdutil: unrecognized option `--help' | |
| Usage: mdutil -pEsa -i (on|off) -d volume ... | |
| mdutil -t {volume-path | deviceid} fileid | |
| Utility to manage Spotlight indexes. | |
| -p Publish metadata. | |
| -i (on|off) Turn indexing on or off. | |
| -d Disable Spotlight activity for volume (re-enable using -i on). | |
| -E Erase and rebuild index. | |
| -s Print indexing status. | |
| -t Resolve files from file id with an optional volume path or device id. | |
| -a Apply command to all volumes. | |
| -V vol Apply command to all stores on the specified volume. | |
| -v Display verbose information. | |
| -r plugins Ask the server to reimport files for UTIs claimed by the listed plugin. | |
| -L path List the directory contents of the Spotlight index on the specified volume. | |
| -P path Dump the VolumeConfig.plist for the specified volume. | |
| -X path Remove the Spotlight index directory on the specified volume. Does NOT disable indexing. | |
| NOTE: Run as owner for network homes, otherwise run as root. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment