- 从第三方来源安装程序:
sudo spctl --master-disable
- 取消4位数密码限制:
pwpolicy -clearaccountpolicies
- 开启HIDPI:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
- Catalina挂载系统分区:
sudo -S mount -uw / && killall Finder
- 查看睡眠时间:
sysctl -a |grep sleeptime
- 查看睡眠唤醒时间:
sysctl -a |grep waketime
- 查看最近一天睡眠唤醒原因:
log show --last 1d | grep "Wake reason"
- 查看睡眠唤醒详细原因:
pmset -g log | grep -Ei 'wake.*due'
- 关闭系统更新提醒红点:
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0