sw_versuname -rsystem_profiler SPHardwareDataType | grep 'Model Identifier'# CPU Brand
sysctl machdep.cpu.brand_string
# CPU Vendor
sysctl -a | grep machdep.cpu.vendor
# CPU Features
sysctl -a | grep machdep.cpu.features
# CPU Features (displayed as list)
sysctl -n machdep.cpu.features | tr ' ' '\n'
# Bus and CPU Frequency
sysctl -a | grep freq# Show log of last boot
log show --last boot
# Search for specific terms in boot log
log show --last boot | grep "your search term"
# Example: Search for ACPI issues
log show --last boot | grep "ACPI"# Check reasons for wake/sleep
pmset -g log | grep -e "Sleep.*due to" -e "Wake.*due to"
# Alternative (searches syslog)
log show --style syslog | fgrep "Wake reason"
# Check hibernation settings
pmset -g
# Check Assertions – displays a summary of power assertions. Assertions may prevent system sleep or display sleep. Available 10.6 and later.
pmset −g assertions sudo rm -rf /Library/Logs/DiagnosticReports/*# Find loaded kexts (excluding Apple's)
kextstat | grep -v com.apple
# Rebuild kext cache (macOS 11+)
sudo kextcache -U /
# Rebuild kext cache (macOS 10.15 or older)
sudo kextcache -i /Run line by line:
xcode-select --install
sudo codesign --force --deep --sign - <drag the app here>
sudo xattr -d -r com.apple.quarantine <drag the app here>
sudo chmod +x <drag the app here># Check SIP status
csrutil status
# Check active csr-active-config
nvram 7C436110-AB2A-4BBB-A880-FE41995C9F82:csr-active-confignvram 94b73556-2197-4702-82a8-3e1337dafbfb:AppleSecureBootPolicyResults:
%00= No Security%01= Medium Security%02= Full Security
# Disable Gatekeeper
sudo spctl --master-disableNote
In macOS Sequoia+, you have to also confirm the changes in System Settings → Gatekeeper → "Allow apps from 'Everywhere'"
# Reset all privacy settings (brings back permission pop-ups)
tccutil reset Allsudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool trueNote
Requires a kernel patch to make persistent
Show Hidden Files and Folders
Keyboard Shortcut:
⌘⇧. (Command+Shift+Dot)
Terminal Commands:
# Show all files
defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder
# Hide files again
defaults write com.apple.finder AppleShowAllFiles FALSE && killall Findersetfile -a v ~/Library
chflags nohidden ~/Librarydefaults write com.apple.finder "QuitMenuItem" -bool "true" && killall Finder# Disable
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Re-enable
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool falseFixes "Open with…" menu issues:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user# System-wide
sudo mdutil -a -i off
sudo mdutil -a -i on
# Specific volume
sudo mdutil -i off /Volumes/Your Volume Name
sudo mdutil -i on /Volumes/Your Volume Namediskutil apfs listNote
Snapshot sealed: Yes means incremental OTA updates are available
sudo diskutil apfs updatePreboot /In Recovery, enter:
csrutil authenticated-root disable
bless --folder /Volumes/x/System/Library/CoreServices --bootefi --create-snapshotx = name of your macOS Volume
# Disable
defaults write com.apple.frameworks.diskimages skip-verify TRUE
# Re-enable
defaults write com.apple.frameworks.diskimages skip-verify FALSEnetworksetup -listallhardwareports# List all network services
sudo networksetup -listallnetworkservices
# Disable IPv6
sudo networksetup -setv6off Ethernet
sudo networksetup -setv6off Wi-Fi
# Re-enable IPv6
sudo networksetup -setv6automatic Wi-Fi
sudo networksetup -setv6automatic Ethernetsudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
sudo rm /Library/Preferences/SystemConfiguration/preferences.plistReference: https://www.dssw.co.uk/reference/pmset.html
# Check hibernation settings
pmset -g
# Disable power management scheduler (fixes high CPU usage for powerd)
sudo pmset schedule cancelallsudo update_dyld_shared_cache -force
sudo /usr/libexec/xpchelper --rebuild-cache# Add "GPU" tab
defaults write com.apple.ActivityMonitor ShowGPUTab -bool true# Enable key repeating (disable press and hold)
defaults write -g ApplePressAndHoldEnabled -bool false# Disable
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
# Re-enable
launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plistdefaults write -g com.apple.SwiftUI.DisableSolarium -bool YESnvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:opencore-versionioreg -l | grep -i board-idOr:
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_IDioreg -l -p IOService -w0 | grep -i EHC1
ioreg -l -p IOService -w0 | grep -i EHC2
ioreg -l -p IOService -w0 | grep -i XHC1
ioreg -l -p IOService -w0 | grep -i XHCIkextstat | grep -E "AppleSMBusController|AppleSMBusPCI"Note: Should return
com.apple.driver.AppleSMBusControllerandcom.apple.driver.AppleSMBusPCI
ioreg -rxn "CPU0@0"Note: CPU name varies (can be "PR00@0", "P000@0", or "C000@0"). Check SSDT-PLUG/SSDT-PM
# Debug ACPI tables
log show --predicate "processID == 0" --start $(date "+%Y-%m-%d") --debug | grep "ACPI"
# List ACPI errors
log show --last boot | grep AppleACPIPlatform
# Save ACPI errors to desktop log
log show --last boot | grep AppleACPIPlatform > ~/Desktop/Log_"$(date '+%Y-%m-%d_%H-%M-%S')".logdefaults write com.apple.sidecar.display AllowAllDevices -bool true
defaults write com.apple.sidecar.display hasShownPref -bool trueNote: Easier to enable via FeatureUnlock.kext
defaults write com.apple.AppleGVA gvaForceAMDKE -boolean yes
defaults write com.apple.AppleGVA gvaForceAMDAVCEncode -boolean YES
defaults write com.apple.AppleGVA gvaForceAMDAVCDecode -boolean YES
defaults write com.apple.AppleGVA gvaForceAMDHEVCDecode -boolean YESsudo defaults write /Library/Preferences/com.apple.CoreDisplay useMetal -boolean no
sudo defaults write /Library/Preferences/com.apple.CoreDisplay useIOP -boolean noOr delete:
sudo defaults delete /Library/Preferences/com.apple.CoreDisplay useMetal
sudo defaults delete /Library/Preferences/com.apple.CoreDisplay useIOPSource: NvidiaGraphicsFixup
sudo rm /System/Library/LaunchDaemons/com.apple.syslogd.plistdefaults write com.apple.iTunesHelper ignore-devices -bool YES
defaults write com.apple.AMPDeviceDiscoveryAgent ignore-devices 1
defaults write com.apple.AMPDeviceDiscoveryAgent reveal-devices 0
defaults write -g ignore-devices -bool trueSource: Apple-Knowledge
chmod +x <drag file here>xcode-select --install# Unenroll from current seed
sudo /System/Library/PrivateFrameworks/Seeding.framework/Resources/seedutil unenroll
# Enroll in developer seed
sudo /System/Library/PrivateFrameworks/Seeding.framework/Resources/seedutil enroll DeveloperSeedNote: In macOS 13+, use Apple's beta program instead
- Show hidden files in Finder: ⌘⇧.
- Access Terminal in Setup Assistant: ⌘⌥⌃T
cd ~/Desktop && mkdir CodecDump && for c in /proc/asound/card*/codec#*; do f="${c/\/*card/card}"; cat "$c" > CodecDump/${f//\//-}.txt; done && zip -r CodecDump.zip CodecDumpsudo dmesg|grep -i firmware- macOS Commands A-Z Index: https://ss64.com/mac/
- macOS Defaults Database: https://macos-defaults.com/
- PMSET Reference: https://www.dssw.co.uk/reference/pmset.html
- Bluetooth Management Guide: https://mogutan.wordpress.com/2018/07/24/switch-bluetooth-setting-from-command-line-on-macos/