Tip | Shutdown Command

When you want to shutdown your computer within a certain ammount of time you can use an Application like Mac Shutdown, but do you know this is a built-in feature at OS X?

The shutdown command may be used together with a countdown timer before the system Shutdown or Restart, you only have to use the following arguments…

# sudo shutdown -h +120

The above command will Shutdown the system in 2 hours (120 minutes), but if you want instead to Restart…

# sudo shutdown -r +120

Or maybe Sleep…

# sudo shutdown -s +120

You can also, schedule a certain day for the task, for example to shutdown on October 14 2014 02:05PM…

# sudo shutdown -h 14101405

With the shutdown command you can even prevent any user with no Administrator rights to login to the OS…

# sudo shutdown -k

For more information, refer to the shutdown Man Page


One thought on “Tip | Shutdown Command

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s