Set Your Mac’s Sleep Time With A Terminal Command

Set Your Mac’s Sleep Time With A Terminal Command

Mac: Terminal commands are great for managing a remote computer, writing scripts or Automating your computer. Here’s a handy terminal command that lets you set a delay for sleep and overrides system preferences.

It’s not hard to change your system preferences for sleep if you’re in front of a computer. But if, for example, you are giving a presentation, you can put this command in the workflow. To set the timer to 60 minutes, the command is:

sudo systemsetup -setcomputersleep 60

If you want the computer to not go to sleep, put NEVER at the end of the command:

sudo systemsetup -setcomputersleep Never

Set or Disable Sleep Due to Mac System Inactivity from the Command Line in OS X [OS X Daily]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments