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 programs from command line!

Restart a Native Mac

To restart a neighborhood Mac system from command line, you’ll be able to execute:

sudo shutdown -r now

Restart a Distant Mac

To restart a distant Mac system, you’ll be able to 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 regionally or remotely.

  • Page Visibility API

    One occasion that is all the time been missing inside the doc is a sign for when the person is taking a look at a given tab, or one other tab. When does the person swap off our website to take a look at one thing else? When do they arrive again?

  • Write Simple, Elegant and Maintainable Media Queries with Sass
  • New York Times-Style Text Selection Widget Using MooTools or jQuery
  • MooTools Window Object Dumping

    Ever need to see all the data saved inside the window property of your browser? Here is your probability. The XHTML We want a wrapper DIV that we’ll think about a console. The CSS I like making this appear like a command-line console. The MooTools JavaScript Relying on what you have got loaded…


Leave a Reply

Your email address will not be published. Required fields are marked *