How to Shutdown or Restart Mac OS X Using Terminal

Shutdown or Restart Mac OS X Using Terminal is the great way to Shutdown Mac OS Properly. Suppose your Mac Computer having any problem and can’t able to Click on Apple Menu then use command Line to shutdown and Restart your Computer. There is also a command for Time shutdown means that you can set time to shutdown PC on that Specified time. There is Many feature like sleep, Log Off, Reboot and Shutdown Mac OS. 

Shutdown Mac OS Using Terminal

 

1. First of all to Launch Terminal, Click on Go Menu Bar then Click on Applications. 

Shutdown Mac OS Using Terminal

 

2. Now  on the Application Windows Click on Utilities and then Click on Terminal Icon. 

Read Also

 

3. Now Terminal Windows Opened then Type below Command to Shutdown Mac OS X Immediately.

 

       sudo shutdown -h now

Shutdown Mac OS Using Terminal

Now it will ask for Mac PC Password, Put Password and then Press Enter. Then you will see that your computer will shutdown automatic within second.

 Reboot Mac OS Using Command Line

 

To Reboot Mac OS using Command line type below Command in Command Line,  

      sudo shutdown -r now

Now your Computer will Reboot Automatically with in second.

Shutdown Mac OS in Certain Time 

 

To Shutdown Computer within specified time then Type the below command on your Command Line , then Press Enter , Now it will ask for System Password Put Password and Press Enter.

    sudo shutdown -h +10

Now after 10 Minute your Computer will Shutdown Automatic .

 

Shutdown Mac OS Using Terminal

Shutdown Mac OS Certain Date and Time 

 

There is also great feature in Command line that you can Shutdown your Mac PC on Specified Date and Time, Type Below Command on Command Line like below Format. 

      sudo shutdown -h  yymmddhhmm

yy – Represent Year

mm – Represent Moth

dd – Represent date

hh – Represent Hour

mm – Represent Minutes

Suppose you want your Computer Will automatic shutdown on 25 Feb , 2015 date and Time 22:00 O’Clock.  then you have to type Command and Press Enter.

     sudo shutdown -h 1502252200

Shutdown Mac OS Using Terminal

 

Now Type Password of your Mac PC then Press Enter. 

Shutdown Mac OS Using Terminal

 

After Put Password It will show Information that On which date and time your Computer Will Shutdown. Now you have learned from this Article to Schedule Shutdown Mac PC on Specified date and Time.

 

Share This onShare on FacebookTweet about this on TwitterShare on LinkedInShare on RedditShare on StumbleUponShare on Google+Pin on PinterestBuffer this pageShare on Tumblr
Rakesh Kumar
at
Rakesh Kumar is a Network engineer and a Blogger. He is crazy for learn and write about Technology , Tech and Computer Tips and Tricks Blog.

Leave a Reply