Restarting and shutting down a pc remotely is a frequent activity for distant system directors. As somebody that writes many shell scripts, I additionally discover myself automating system restarts. Let us take a look at a couple of methods to restart Mac methods from command line!
Restart a Native Mac
To restart an area Mac system from command line, you may execute:
sudo shutdown -r now
Restart a Distant Mac
To restart a distant Mac system, you may execute:
ssh -l {AdminSystemAddress} sudo shutdown -r now
Restart at a Particular Time
You possibly can 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 sources. These command line examples ought to assist restart a Mac domestically or remotely.
Chris Coyier’s Favourite CodePen Demos
David requested me if I would be up for a visitor put up selecting out a few of my favourite Pens from CodePen. A frightening activity! There are such a lot of! I managed to select a couple of although which have blown me away over the previous few months. Should you…
5 Extra HTML5 APIs You Didn’t Know Existed
The HTML5 revolution has supplied us some superior JavaScript and HTML APIs. Some are APIs we knew we have wanted for years, others are leading edge cell and desktop helpers. No matter API energy or goal, something to assist us higher do our job is a…
CSS Filters
CSS filter help lately landed inside WebKit nightlies. CSS filters present a way for modifying the rendering of a primary DOM component, picture, or video. CSS filters permit for blurring, warping, and modifying the colour depth of components. Let’s have…