Saturday, October 14, 2023
HomeSoftware DevelopmentRestart 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 a couple of methods to restart Mac programs from command line!

Restart a Native Mac

To restart an area 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 selected 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 assets. These command line examples ought to assist restart a Mac domestically or remotely.

  • Write Better JavaScript with Promises

    You’ve got in all probability heard the speak across the water cooler about how guarantees are the longer term. The entire cool children are utilizing them, however you do not see what makes them so particular. Cannot you simply use a callback? What is the huge deal? On this article, we’ll…

  • How I Stopped WordPress Comment Spam

    I like nearly each a part of being a tech blogger:  studying, preaching, bantering, researching.  The one half about running a blog that I completely detest:  coping with SPAM feedback.  For the previous two years, my weblog has registered 8,000+ SPAM feedback per day.  PER DAY.  Bloating my database…

  • Adding Events to Adding Events in MooTools

    Notice: This submit has been up to date. One in every of my big net peeves is when a component has click on occasions hooked up to it however the aspect would not sport the “pointer” cursor. I imply how the hell is the person presupposed to know they will/ought to click on on…

  • Create a Simple Slideshow Using MooTools, Part IV: Thumbnails and Captions


Supply hyperlink
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments