Restart Mac From Command Line
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.
Your early CSS books were instrumental in pushing my love for front end technologies. What was it about CSS that you fell in love with and drove you to write about it?
At first blush, it was the simplicity of it as compared to the table-and-spacer...
Many of the new APIs provided to us by browser vendors are more targeted toward the mobile user than the desktop user. One of those simple APIs the Vibration API. The Vibration API allows developers to direct the device, using JavaScript, to vibrate in...
A while back I shared a clever technique for creating triangles with only CSS. Over the past year, I've found CSS triangles incredibly effective, especially when looking to create tooltips or design elements with a likewise pointer pattern. There's another common shape...
The Dojo Toolkit is a treasure chest of great JavaScript classes. You can find basic JavaScript functionality classes for AJAX, node manipulation, animations, and the like within Dojo. You can find elegant, functional UI widgets like DropDown Menus, tabbed interfaces, and form element replacements within...