Home Programming News 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 process for distant system directors. As somebody that writes many shell scripts, I additionally discover myself automating system restarts. Let’s take a look at just a few methods to restart Mac programs from command line!

Restart a Native Mac

To restart an area 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 possibly can 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 huge updates or simply for clearing out system sources. These command line examples ought to assist restart a Mac regionally or remotely.

  • Animating CSS3 Transforms with MooTools Fx
  • CSS Gradients

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

  • Submit Button Enabling

    “Enabling” you ask? Sure. Everyone knows the right way to disable the submit upon kind submission and the explanations for doing so, however what about re-enabling the submit button after an allotted period of time. In any case, what if the consumer presses the “cease”…

  • SmoothScroll Using MooTools 1.2



Please enter your comment!
Please enter your name here