macOS defaults, Finder and CLI Tips Cheat Sheet¶
Quick-reference guide for changing hidden settings with defaults, tweaking Finder and the Dock, and everyday Terminal shortcuts on macOS.
macOS defaults, Finder & UI Tweaks¶
Show Hidden Dotfiles in Finder:
Show All File Extensions System-Wide:
Show Status Bar and Path Bar in Finder:
defaults write com.apple.finder ShowStatusBar -bool true && defaults write com.apple.finder ShowPathbar -bool true && killall Finder
Display Full POSIX Path in Finder Window Title:
Default Finder Search Scope to Current Folder (Instead of "This Mac"):
Keep Folders on Top When Sorting by Name in Finder:
Disable Warning When Changing a File Extension:
Prevent Creation of .DS_Store Files on Network (SMB/NFS) & USB Volumes:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
Set Custom Screenshot Save Directory:
mkdir -p ~/Pictures/Screenshots && defaults write com.apple.screencapture location ~/Pictures/Screenshots && killall SystemUIServer
Disable Drop Shadows on Window Screenshots:
Change Screenshot Format (png, jpg, pdf, heic):
Speed Up Dock Auto-Hide & Remove Reveal Delay:
defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0.15 && killall Dock
Disable "Press and Hold" Accents in Favor of Fast Key Repeat (Essential for Vim/Terminal):
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 15
Daily CLI Productivity & Bridge Utilities¶
Copy Command Output Directly to macOS Clipboard (Pasteboard):
Paste Clipboard Contents into a File:
Open Current Working Directory in Finder:
Launch an Application or Pass a File to a Specific GUI Application:
Search Files Instantly via Spotlight Metadata Index (mdfind):
Search Spotlight Content Within a Specific Directory:
Inspect Spotlight Metadata Attributes of a File:
Convert Property List (.plist) Files Between Binary and XML for Editing:
Validate .plist Syntax:
Sources & Verification¶
defaultsreference: macos-defaults.com- Terminal User Guide: Apple Support