macOS 系統設置除了打開「系統偏好設定」進行設置之外,還有一部分系統設置只能採用執行命令操作來完成。本文主要介紹常用的採用命令對系統設置的操作。
sudo spctl --master-disable
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true
defaults write com.apple.finder AppleShowAllFiles -bool true
調整鼠標捲動方向
系統偏好設定-滑鼠-取消勾選「捲動方向:自然」
啟用次像素抗鋸齒渲染
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2
defaults -currentHost write -globalDomain AppleFontSmoothing -int 3
defaults -currentHost write -globalDomain AppleFontSmoothing -int 0
defaults read -g CGFontRenderingFontSmoothingDisabled
defaults -currentHost read -globalDomain AppleFontSmoothing