TimeMachine

  • Compress sparse bundle disk image mounted over a network:

    1 $ sudo hdiutil compact /Volumes/time-machine-backups/my-machine.sparsebundle

PluginKit

  • List available PluginKit extensions:

    1 $ pluginkit -mAvvv
  • Get infos on a PluginKit extensions:

    1 $ pluginkit -m -v -i com.agilebits.onepassword7.1PasswordSafariAppExtension
  • Enable a PluginKit extensions:

    1 $ pluginkit -e use -i com.agilebits.onepassword7.1PasswordSafariAppExtension

Kernel extensions

  • List non-system kernel extensions currently loaded:

    1 $ kextstat | grep -v com.apple
  • List non-system kernel extensions currently loaded:

    1 $ sudo kextunload -b com.google.drivefs.filesystems.dfsfuse

Network

  • Clear local DNS cache:

    1 $ sudo killall -HUP mDNSResponder

Filesystem

  • List all partitions of all disks:

    1 $ diskutil list
  • Remove the first partition of the fourth disk:

    1 $ diskutil eraseVolume free free /dev/disk4s1
  • List shared folders in iCloud:

    1 $ mdfind -onlyin "$HOME/Library/Mobile Documents/" 'kMDItemIsShared == 1'
  • Install Steam in a case-insensitive disk image.