Setting Energy Saver Preferences on macOS Mojave/High Sierra
System preferences can be set on macOS using the defaults command. For example, say I wish set the Prevent sleep setting that can be set through the System Preferences interface, but instead via command line. If your settings match those in the screenshot above, running defaults read /Library/Preferences/com.apple.PowerManagement.plist in the terminal should output { “ACContinue reading Setting Energy Saver Preferences on macOS Mojave/High Sierra