macOS Power User¶
System utilities, Homebrew management, and hidden settings.
Keyboard Symbols¶
| Symbol | Key |
|---|---|
| Cmd | Command |
| Option | Option |
| Ctrl | Control |
| Shift | Shift |
Homebrew¶
Bundle — Reproducible Setup¶
Export your installed packages to a Brewfile:
Install everything from a Brewfile:
Maintenance¶
Update Homebrew and all packages:
Clean up old versions:
List packages not depended on by anything:
mas — Mac App Store CLI¶
List installed App Store apps:
Search and install:
Install:
brew install mas
System Utilities¶
caffeinate — Prevent Sleep¶
Keep the system awake for 2 hours:
Keep awake while a command runs:
Software Updates¶
Check for and install all updates:
Disk Utilities¶
List all disks:
Get SMART status:
defaults write — Hidden Settings¶
Show all file extensions in Finder:
Show hidden files in Finder:
Disable the "Are you sure you want to open this application?" dialog:
Speed up Mission Control animations:
Speed up SMB network share browsing (skip .DS_Store reads):
Re-enable default behavior:
Restart affected services after changes:
Tip
Read current values first with defaults read <domain> <key> before changing them.
Clipboard¶
Copy a file's contents to clipboard:
Paste clipboard contents to a file:
Finder Navigation¶
| Shortcut | Action |
|---|---|
| Shift+Cmd+. | Toggle hidden files |
| Shift+Cmd+G | Go to folder |
| Cmd+Shift+A | Applications folder |
| Cmd+Shift+U | Utilities folder |
Quarantine Log¶
View all downloaded files macOS has tracked:
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* \
'select LSQuarantineDataURLString from LSQuarantineEvent'
Clear the log: