Restarting and shutting down a computer remotely is a frequent task for remote system administrators. As someone that writes many shell scripts, I also find myself automating system restarts. Let’s look at a few ways to restart Mac systems from command line! Restart a Local Mac To restart a local Mac system from command line, […]
The post Restart Mac From Command Line appeared first on David Walsh Blog.
Restarting and shutting down a computer remotely is a frequent task for remote system administrators. As someone that writes many shell scripts, I also find myself automating system restarts. Let’s look at a few ways to restart Mac systems from command line!
Restart a Local Mac
To restart a local Mac system from command line, you can execute:
sudo shutdown -r now
Restart a Remote Mac
To restart a remote Mac system, you can execute:
ssh -l {AdminSystemAddress} sudo shutdown -r now
Restart at a Specific Time
You can specify a restart at a specific time:
# Format: sudo shutdown -r hhmm # Restart at 11:30pm local time sudo shutdown -r 2330
System restarts are good after massive updates or just for clearing out system resources. These command line examples should help restart a Mac locally or remotely.
The post Restart Mac From Command Line appeared first on David Walsh Blog.
Related Posts
Recommended Story For You :
![](https://clickaibank.co.in/cb-resources/img/homepage-foreground.jpg)
GET YOUR VINCHECKUP REPORT
![](https://clickaibank.co.in/cb-resources/img/645d006bb149e9165e0d11a6_MarketingBlocks-hero3-p-800.png)
The Future Of Marketing Is Here
![](https://clickaibank.co.in/cb-resources/img/charactersample.png)
Images Aren’t Good Enough For Your Audience Today!
![](https://clickaibank.co.in/cb-resources/img/wsfr_3.0_header_box.png)
Last copies left! Hurry up!
![](https://clickaibank.co.in/cb-resources/img/home_banner_image.png)
GET THIS WORLD CLASS FOREX SYSTEM WITH AMAZING 40+ RECOVERY FACTOR
![](https://clickaibank.co.in/cb-resources/img/home-feature-calendar.png)
Browse FREE CALENDARS AND PLANNERS
![](https://clickaibank.co.in/cb-resources/img/easyStep1.png)
Creates Beautiful & Amazing Graphics In MINUTES
![](https://clickaibank.co.in/cb-resources/img/bottom_bg.png)
Uninstall any Unwanted Program out of the Box
![](https://clickaibank.co.in/cb-resources/img/header_2222.jpg)