Mac OS Commands

Table of Contents

Some Mac OS commands.

Plist content

plutil -p <filename>

Launch Control

launchctl list # List services
launchctl load <plist file> # Start service
launchctl unload <plist file> # Stop service
System Service Location
  • /Library/LaunchDaemons/
  • /System/Library/LaunchDaemons/

Change Hostname

sudo scutil --set HostName <hostname>

Mouse Speed

  • Get Current
defaults read -g com.apple.mouse.scaling
  • Set New value
defaults write -g com.apple.mouse.scaling your_mouse_speed

May need reboot.

dns-sd(mdns)

Get address of hostname

dns-sd -G v4v6 <hostname>

Kernel Extension

  • List all kernel extension
kextstat
  • List all non-Apple extension
kextstat | grep -v com.apple
John Siu
Minimize the Effort, Maximize the Effect!
comments powered by Disqus