From 29eac6d7e4b99a7bfb20e51d4d6e01df473598d3 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Tue, 13 Oct 2015 20:20:04 +0200 Subject: [PATCH] Add Spotlight category and entries --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 94ebd75..43a057a 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [ - [Root User](#root-user) - [Safe Mode Boot](#safe-mode-boot) - [Software Installation](#software-installation) + - [Spotlight](#spotlight) ## Appearance @@ -583,6 +584,28 @@ installer -pkg /path/to/installer.pkg -target / ``` +### Spotlight + +#### Disable Indexing +```bash +mdutil -i off -d /path/to/volume +``` + +#### Enable Indexing +```bash +mdutil -i on /path/to/volume +``` + +#### Erase Spotlight Index and Rebuild +```bash +mdutil -E /path/to/volume +``` + +#### Search via Spotlight +```bash +mdfind -name 'searchterm' +``` + ## License Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.