Skip to content

Commit

Permalink
Merge pull request #1185 from Richard70NL/patch-1
Browse files Browse the repository at this point in the history
OSX spotlight and system utils changes
  • Loading branch information
rstacruz authored Dec 31, 2019
2 parents e8acd96 + f58b48c commit 005789b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ 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 # 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

Expand All @@ -49,8 +51,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"

Expand Down

0 comments on commit 005789b

Please sign in to comment.