Update on spotlight indexing and system utils
- /etc/hostconfig is no longer supported since Yosemite. - removed the s from `mdutils` and `tmutils`
This commit is contained in:
parent
090d42f103
commit
462e38c332
10
osx.md
10
osx.md
|
@ -32,10 +32,10 @@ category: macOS
|
||||||
killall -HUP mDNSResponder # 10.8+
|
killall -HUP mDNSResponder # 10.8+
|
||||||
dscacheutil -flushcache # 10.7 below
|
dscacheutil -flushcache # 10.7 below
|
||||||
|
|
||||||
### Turn off spotlight
|
### Disable spotlight indexing
|
||||||
|
|
||||||
sudo vim /etc/hostconfig # change SPOTLIGHT=-YES- to SPOTLIGHT=-NO-
|
mdutil -a -i off # until next reboot on all volumes
|
||||||
mdutil -i off /
|
touch FOLDER/.metadata_never_index # if this file exists in FOLDER only for that FOLDER
|
||||||
|
|
||||||
### Turn on/off proxy
|
### Turn on/off proxy
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ category: macOS
|
||||||
### System utils
|
### System utils
|
||||||
|
|
||||||
- `networksetup` - Configure network (ip, dns, proxy, etc)
|
- `networksetup` - Configure network (ip, dns, proxy, etc)
|
||||||
- `tmutils` - Configure Time Machine (enable/disable, exclude path, delete snapshots, etc)
|
- `tmutil` - Configure Time Machine (enable/disable, exclude path, delete snapshots, etc)
|
||||||
- `mdutils` - Manage Spotlight (enable/disable, exclude, etc)
|
- `mdutil` - Manage Spotlight (enable/disable, exclude, etc)
|
||||||
- `diskutil` - Control disk (format, eject, unmount, etc)
|
- `diskutil` - Control disk (format, eject, unmount, etc)
|
||||||
- `launchctl` - Control running "agents"
|
- `launchctl` - Control running "agents"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue