Restart Mac From Command Line

[ad_1]

Restarting and shutting down a pc remotely is a frequent activity 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 couple 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 possibly can 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 regionally or remotely.

  • GitHub-Style Sliding Links

    GitHub appears to vary quite a bit however not likely change in any respect, if that makes any sense; the updates come typically however are all the time pretty small. I noticed one of the latest updates on the pull request web page. Hyperlinks to lengthy department…

  • “Top” Watermark Using MooTools

    Every time you have got an extended web page value of content material, you typically wish to add a “high” anchor hyperlink on the backside of the web page in order that your consumer does not must scroll endlessly to get to the highest. The one downside with this methodology is…


[ad_2]

Leave a Reply

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