Software

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’s take a look at a number of methods to restart Mac methods from command line!

Restart a Native Mac

To restart a neighborhood Mac system from command line, you possibly can execute:

sudo shutdown -r now

Restart a Distant Mac

To restart a distant Mac system, you possibly can execute:

ssh -l {AdminSystemAddress}
sudo shutdown -r now

Restart at a Particular Time

You may 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 assets. These command line examples ought to assist restart a Mac regionally or remotely.


Related Articles

Leave a Reply

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

Back to top button