Categories: AppleTech

How to Automatically Shutdown Mac After Specified Time Using Simple Terminal Command

Shutting down Mac at a specified time may come handy if you are downloading something important, scheduled a job which will end at a certain time when you will not be near your Mac. You can easily shutdown Mac at a specified time by giving a simple command in the Mac terminal. This would save your Mac from

running uselessly. You could also save a lot of time because you can just schedule certain jobs like downloading, scheduled jobs, rendering, and go out without worrying about your Mac running for no use and eating power.

Here’s how to automatically shutdown Mac at a specific time.

Launch Terminal app in your Mac. Terminal app is mostly located in this directory “/Applications/Utilities”

Here’s the command you should type and execute in order to schedule an automatic shutdown in your Mac.

sudo shutdown -h +x

Note: “x” is the number of minutes you want your Mac to be shutdown. For example, if I write this command like this

sudo shutdown -h +20

This would mean that the Mac will be shutdown

after 20 minutes from now (from the time of execution). You can put any number of minutes here and the Mac will shutdown exactly after that time period.
Remember, you will need administrator password in order to execute this command.

Also, don’t close the terminal windows after executing the command, let it opened because if you close it, the command will be cancelled and Mac will not be automatically shutdown. Don’t execute “Ctrl+C” in the windows as well, it also nullifies the command. Just execute the command and do another job or leave for your work.

This was how to automatically shutdown Mac after a specified time. Share your questions and feedback in comments.

Fahad Saleem

Recent Posts

10 Features of Best Online Casinos with No Deposit Bonus

Online casinos are becoming more and more popular with gamblers these days. However, when it…

10 hours ago

How Companies Use Multi-Display Technology

Multi-display technology has changed many peoples’ working lives for the better, both on a small…

11 hours ago

How to Get Started with a Thriving Career in Tech

The world is run by computers and by computer programs. So even if you do…

11 hours ago

Centbee graduates from regulatory sandbox, adds new countries to remittance service

Fintech company Centbee announced today that it has successfully completed testing of its remittance service,…

12 hours ago

4 Ways To Spot Weak Points In A Workflow Process

All industries have workflow processes that differ from one another. Ultimately, though, the entire operation…

1 day ago

How To Keep Your Network Secure In A Work From Home Setting

With the coronavirus pandemic affecting the world, more business owners consider working from home as…

1 day ago