macOS Command-Line Reference (Apple Silicon)¶
Start page for the macOS command-line cheat sheets. They cover modern macOS administration on Apple Silicon (arm64): Homebrew, updates and hardware, networking, launchd services, security, and system defaults.
Architecture & Environment Specifics¶
- Apple Silicon Architecture: Modern macOS runs natively on Apple Silicon (
arm64). - Homebrew Prefix: Native Apple Silicon packages install strictly to
/opt/homebrew. - Signed System Volume (SSV): The root volume (
/) is cryptographically sealed and mounted read-only. Dynamic user and system data lives on/System/Volumes/Data(firmlinked to/Users,/Library, and/Applications). - File System Behavior: APFS is Case-Insensitive but Case-Preserving by default (
File.txtandfile.txtresolve to the same file). External drives mount under/Volumes/, and GUI applications in/Applications/are.appdirectory bundles with binaries located insideContents/MacOS/.
Cheat Sheets in This Set¶
| Cheat sheet | Covers |
|---|---|
| macOS Homebrew Cheat Sheet | Installing, upgrading, and removing formulae and casks; Brewfiles; cleanup |
| macOS System, Updates and Hardware Cheat Sheet | softwareupdate, full installers, Xcode tools, system_profiler, powermetrics, diskutil and APFS, Time Machine snapshots, battery, caffeinate |
| macOS Networking Cheat Sheet | Interfaces, Wi-Fi diagnostics, DNS, networkQuality, listening ports, Application Firewall and pf |
| macOS launchd, Processes and Logs Cheat Sheet | launchctl user and system services, LaunchAgents, processes, log show and log stream |
| macOS Security Cheat Sheet | Gatekeeper, XProtect, quarantine attributes, codesign, notarization, FileVault |
| macOS defaults, Finder and CLI Tips Cheat Sheet | defaults tweaks for Finder, Dock, and screenshots; clipboard, open, mdfind, and plist tools |
For Homebrew commands that work on both macOS and Linux, see the Homebrew Command Reference.
Sources & Official Documentation¶
- Apple Developer macOS Release Notes: https://developer.apple.com/documentation/macos-release-notes
- Apple Terminal User Guide: https://support.apple.com/guide/terminal/welcome/mac
- Homebrew Official Documentation & Manpage: https://docs.brew.sh/Manpage
- Apple Built-in Manual Pages (
launchctl,wdutil,softwareupdate,powermetrics,codesign,stapler): Accessible locally viaman [command] - macOS
defaultsReference: https://macos-defaults.com/