Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I disable AppNap for Terminal? Get Info on Terminal does not have Prevent App Nap check box

Terminal Info

An alternative is to turn the NSAppSleepDisabled flag on, but will it actually work?

$ defaults write NSAppSleepDisabled -bool YES

Why Disable App Nap for Terminal

I frequently have long running jobs on Terminal, such as debugging a server, downloading large files or backing up large amount of files. There is a risk of interrupting a network session when (if?) App Nap is enabled for Terminal.

share|improve this question

Yes, the Terminal command that you provided does prevent App Nap:

defaults write NSAppSleepDisabled -bool YES

I tested the command, and it worked successfully…

  • Before:

  • After:

share|improve this answer
FYI: I was testing this in OSX 10.10 (Yosemite) and the key is now LSAppNapIsDisabled and not NSAppSleepIsDisabled. (The bold characters have changed.) – SaxDaddy Oct 26 '14 at 8:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .