I'm looking for the terminal / shell commands to turn on "prevent computer from sleeping" in power settings. I can check it manually in System Preferenes->Power..->"prevent computer from sleeping" , but it unchecks itself when I reboot. Since I'm using a corporate Macbook, there may be a company policy/login script that unchecks the setting. It wouldn't be a problem if I didn't use ssh a lot to do my work. If I lock my computer to go to lunch or other reason, when I come back all of my ssh sessions are disconnected. Google hasn't been my friend on this as it returns apps like Caffeine ( which I have ) or tells me to check the feature that I already know how to check. I messed around with defaults domains and defaults read com.apple.systempreferences but didn't find anything to do with sleep. Ideas and recommendations would be appreciated.