這是本文件的舊版!
Macos
System
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.
Set Disk Label
diskutil list sudo diskutil mount disk0s1 # mount EFI partition sudo bless --folder /Volumes/EFI/EFI/Boot --label Windows
Set Disk Icon
csrutil disable # in recovery mode ## For macOS icon ### find the preboot partition sudo diskutil apfs list ### mount the preboot partition sudo diskutil mountDisk /dev/disk1s2 ### copy icon sudo cp /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/Internal.icns /Volumes/Preboot/.VolumeIcon.icns ## For Windows icon ## mount the EFI parititon sudo diskutil mountDisk /dev/disk0s1 ### copy icon sudo cp /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/Internal.icns /Volumes/EFI/.VolumeIcon.icns csrutil enable # in recovery mode
https://apple.stackexchange.com/questions/388246/efi-partition-change-name-and-logo/388287
Bootcamp
Download bootcamp driver from
- Apple's bootcamp utility that will save bootcamp driver to USB drive
sudo diskutil mount disk0s1