From 462e38c33202cc34c0d7158f25471e4aa671f353 Mon Sep 17 00:00:00 2001 From: Richard Date: Mon, 26 Aug 2019 16:17:10 +0200 Subject: [PATCH 1/2] Update on spotlight indexing and system utils - /etc/hostconfig is no longer supported since Yosemite. - removed the s from `mdutils` and `tmutils` --- osx.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/osx.md b/osx.md index 6a5946bd8..6ef4561ae 100644 --- a/osx.md +++ b/osx.md @@ -32,10 +32,10 @@ category: macOS killall -HUP mDNSResponder # 10.8+ dscacheutil -flushcache # 10.7 below -### Turn off spotlight +### Disable spotlight indexing - sudo vim /etc/hostconfig # change SPOTLIGHT=-YES- to SPOTLIGHT=-NO- - mdutil -i off / + mdutil -a -i off # until next reboot on all volumes + touch FOLDER/.metadata_never_index # if this file exists in FOLDER only for that FOLDER ### Turn on/off proxy @@ -49,8 +49,8 @@ category: macOS ### System utils - `networksetup` - Configure network (ip, dns, proxy, etc) - - `tmutils` - Configure Time Machine (enable/disable, exclude path, delete snapshots, etc) - - `mdutils` - Manage Spotlight (enable/disable, exclude, etc) + - `tmutil` - Configure Time Machine (enable/disable, exclude path, delete snapshots, etc) + - `mdutil` - Manage Spotlight (enable/disable, exclude, etc) - `diskutil` - Control disk (format, eject, unmount, etc) - `launchctl` - Control running "agents" From f58b48c931fe38b1c0864fa138ccafae4d58c9c6 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 27 Aug 2019 15:22:59 +0200 Subject: [PATCH 2/2] additional changes to spotlight indexing --- osx.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/osx.md b/osx.md index 6ef4561ae..675a130bf 100644 --- a/osx.md +++ b/osx.md @@ -34,8 +34,10 @@ category: macOS ### Disable spotlight indexing - mdutil -a -i off # until next reboot on all volumes - touch FOLDER/.metadata_never_index # if this file exists in FOLDER only for that FOLDER + mdutil -a -i off # disable indexing for all volumes + mdutil -i off MOUNT_POINT # disable for specific volume + touch FOLDER/.metadata_never_index # disable for FOLDER + ### Turn on/off proxy