Home Software Development Restart Mac From Command Line

Restart Mac From Command Line

0
Restart Mac From Command Line
[ad_1]

Restarting and shutting down a pc remotely is a frequent activity for distant system directors. As somebody that writes many shell scripts, I additionally discover myself automating system restarts. Let’s take a look at a number of methods to restart Mac methods from command line!

Restart a Native Mac

To restart a neighborhood Mac system from command line, you may execute:

sudo shutdown -r now

Restart a Distant Mac

To restart a distant Mac system, you may execute:

ssh -l {AdminSystemAddress}
sudo shutdown -r now

Restart at a Particular Time

You may specify a restart at a particular time:

# Format:  sudo shutdown -r hhmm
# Restart at 11:30pm native time
sudo shutdown -r 2330

System restarts are good after large updates or simply for clearing out system sources. These command line examples ought to assist restart a Mac domestically or remotely.

  • 9 Mind-Blowing Canvas Demos

    The <canvas> factor has been a revelation for the visible consultants amongst our ranks.  Canvas offers the means for unimaginable and environment friendly animations with the added bonus of no Flash; these builders can flash their superior JavaScript expertise as an alternative.  Listed below are 9 unbelievable canvas demos that…

  • 7 Essential JavaScript Functions

    I keep in mind the early days of JavaScript the place you wanted a easy perform for nearly every little thing as a result of the browser distributors carried out options in a different way, and never simply edge options, fundamental options, like addEventListener and attachEvent.  Occasions have modified however there are nonetheless a number of capabilities every developer ought to…

  • jQuery Wookmark

    The very first thing that hits you once you go to Pinterest is “Whoa, the columns are the identical width and the images are lower to suit simply the way in which they need to.”  Fundamental net customers in all probability suppose nothing of it however as a developer, I can recognize the…

  • Build a Slick and Simple MooTools Accordion

    Final week I coated a easy, refined MooTools impact known as Kwicks. One other nice MooTools creation is the Accordion, which acts like…look ahead to it…an accordion! Now I’ve by no means been an enormous Bizarre Al fan so that is as near enjoying an accordion as…


[ad_2]