Remove Quarantine Attribute
xattr -dr com.apple.quarantine /path/to/AppName.appRemove quarantine attribute from downloaded apps
Hide the Dock
defaults write com.apple.dock autohide -bool true; killall DockAutomatically hide and show the Dock
Show the Dock
defaults write com.apple.dock autohide -bool false; killall DockKeep the Dock always visible
Show Hidden Files
defaults write com.apple.finder AppleShowAllFiles -bool true; killall FinderDisplay hidden files and folders in Finder
Hide Hidden Files
defaults write com.apple.finder AppleShowAllFiles -bool false; killall FinderHide hidden files and folders in Finder
Disable Gatekeeper
sudo spctl --master-disableAllow installation of apps from any source
Enable Gatekeeper
sudo spctl --master-enableRestore default app security settings
Remove Quarantine Attribute
xattr -dr com.apple.quarantine /path/to/AppName.appRemove quarantine attribute from downloaded apps
Open Safari
open -a "Safari"Launch Safari browser from Terminal
Hide Folder
chflags hidden ~/FolderNameHide a folder in Finder (replace FolderName)
Unhide Folder
chflags nohidden ~/FolderNameMake a hidden folder visible in Finder
Empty Trash
rm -rf ~/.Trash/*Empty the Trash from command line
Lock Screen
pmset displaysleepnowImmediately lock the screen
Speed Up Dock Animation
defaults write com.apple.dock autohide-time-modifier -float 0.2; killall DockMake Dock appear/hide faster
Disable Dock Animation
defaults write com.apple.dock autohide-time-modifier -int 0; killall DockRemove Dock hide/show animation entirely
Reset Dock to Default
defaults delete com.apple.dock; killall DockReset Dock to factory settings
Enable Dark Mode
osascript -e "tell app "System Events" to tell appearance preferences to set dark mode to true"Switch to dark mode from Terminal
System Information
system_profiler SPSoftwareDataTypeDisplay macOS version and system info
CPU Usage
top -l 1 -s 0 | grep "CPU usage"Show current CPU usage statistics
Memory Pressure
memory_pressureCheck system memory pressure
Disk Usage
df -hShow disk space usage for all mounted drives
Flush DNS Cache
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderClear DNS cache to fix network issues
WiFi Information
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -IDisplay detailed WiFi connection info
Network Speed Test
networkQualityBuilt-in network speed test (macOS 12+)
Text to Speech
say "Hello from Terminal"Make macOS speak text aloud