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!
Contents
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.
Create Namespaced Classes with MooTools
MooTools has always gotten a bit of grief for not inherently using and standardizing namespaced-based JavaScript classes like the Dojo Toolkit does. Many developers create their classes as globals which is generally frowned up. I mostly disagree with that stance, but each to their own. In any event…
Chris Coyier’s Favorite CodePen Demos
David asked me if I’d be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you…
CSS Filters
CSS filter support recently landed within WebKit nightlies. CSS filters provide a method for modifying the rendering of a basic DOM element, image, or video. CSS filters allow for blurring, warping, and modifying the color intensity of elements. Let’s have…
[ad_2]
Source link