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.
With CSS border-radius, I showed you how CSS can bridge the gap between design and development by adding rounded corners to elements. CSS gradients are another step in that direction. Now that CSS gradients are supported in Internet Explorer 8+, Firefox, Safari, and Chrome...
CSS and JavaScript: the lines seemingly get blurred by each browser release. They have always done a very different job but in the end they are both front-end technologies so they need do need to work closely. We have our .js files and our .css, but...
Whenever I go to Google Analytics I notice a slight flicker in the dropdown list area. I see a button appear for the shortest amount of time and the poof! Gone. What that tells me is that Google is making their site function...
Overlays have become a big part of modern websites; we can probably attribute that to the numerous lightboxes that use them. I've found a ton of overlay code snippets out there but none of them satisfy my taste in code. Many of them are...