Home Software Development Restart Mac From Command Line

Restart Mac From Command Line

Restart Mac From Command Line

Restarting and shutting down a pc remotely is a frequent job for distant system directors. As somebody that writes many shell scripts, I additionally discover myself automating system restarts. Let us 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’ll be able to specify a restart at a selected 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.

  • Chris Coyier’s Favorite CodePen Demos

    David requested me if I might be up for a visitor put up choosing out a few of my favourite Pens from CodePen. A frightening job! There are such a lot of! I managed to select a number of although which have blown me away over the previous few months. If you happen to…

  • CSS Gradients

    With CSS border-radius, I confirmed you the way CSS can bridge the hole between design and improvement by including rounded corners to components.  CSS gradients are one other step in that course.  Now that CSS gradients are supported in Web Explorer 8+, Firefox, Safari, and Chrome…

  • Sexy Link Transformations with CSS
  • CSS Rounded Corners

    The flexibility to create rounded corners with CSS opens the opportunity of delicate design enhancements with out the necessity to embody pictures.  CSS rounded corners thus save us time in creating pictures and requests to the server.  Right this moment, rounded corners with CSS are supported by all of…



Please enter your comment!
Please enter your name here