Skip to content

Restart Mac From Command Line

Restarting and closing down a pc remotely is a widespread activity for far flung gadget directors. As any person that writes many shell scripts, I additionally in finding myself automating gadget restarts. Let’s take a look at a couple of tactics to restart Mac methods from command line!

Restart a Native Mac

To restart a neighborhood Mac gadget from command line, you’ll execute:

sudo shutdown -r now

Restart a Far flung Mac

To restart a far flung Mac gadget, you’ll execute:

ssh -l {AdminSystemAddress}
sudo shutdown -r now

Restart at a Explicit Time

You’ll specify a restart at a selected time:

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

Gadget restarts are excellent after huge updates or simply for clearing out gadget assets. Those command line examples must assist restart a Mac in the community or remotely.

  • 5 HTML5 APIs You Didn’t Know Existed

    While you say or learn “HTML5”, you part be expecting unique dancers and unicorns to stroll into the room to the song of “I am Attractive and I Know It.”  Are you able to blame us although?  We watched the elemental APIs stagnate for goodbye {that a} elementary function…

  • How to Create a Twitter Card
  • MooTools Equal Heights Plugin:  Equalizer

    Conserving equivalent heights between components inside the similar container can also be massively vital for the sake of a beautiful web page. Sadly once in a while holding columns the similar peak cannot be performed with CSS — you want just a little assist out of your JavaScript pals. Smartly…now you might be…

  • Create Spinning Rays with CSS3: Revisited

Ready to get a best solution for your business?