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.

Related posts

How to Upgrade to Windows 11 from Windows 10 and How to Download Windows 11

How to Minimize your PDF File Size

How to Find an EXE file On Windows 10