這是本文件的舊版!


Macos

System Integrity Protection

csrutil status

Power Management

pmset -b standbydelaylow 900
pmset -b standbydelayhigh 10800
pmset -b tcpkeepalive 0
pmset -g

Disk Util

diskutil list
diskutil unmount

USB Serial

ioreg -p IOUSB -l -b | grep -E "@|PortNum|USB Serial Number"

DNS server

scutil --dns

Route

route -n get default www.google.com
route -n get default
netstat -rn

Dual boot

Holding Option key on boot to switch boot drive. Holding Ctrl key and the icon will change, this set the default boot drive.