Skip to content

Handy Mac commands:


Make your media shortcuts work even when they're not the focused window, like it used to be:

  • Open System Preferences -> Keyboard -> Shortcuts -> Keyboard
  • Uncheck the F7 and F8 options

Show Hidden Files

$ defaults write com.apple.finder AppleShowAllFiles True
$ killall Finder

DNS Cache Clear

sudo dscacheutil -flushcache

Turn off Prefetch Cache

defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false

Compact Sparseimages (example where "Media Store" is the name of the image)

hdiutil compact "Media Store.sparsebundle" -batteryallowed

Disable Time Machine Local Snapshots (Prevents a Mac's hard drive from filling up to 80% on just backups)

sudo tmutil disablelocal