Tuesday, April 16, 2024
HomeSoftware DevelopmentRestart Mac From Command Line

Restart Mac From Command Line

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 number of methods to restart Mac methods from command line!

Restart a Native Mac

To restart a neighborhood Mac system from command line, you’ll be able to execute:

sudo shutdown -r now

Restart a Distant Mac

To restart a distant Mac system, you’ll be able to execute:

ssh -l {AdminSystemAddress}
sudo shutdown -r now

Restart at a Particular Time

You may 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 assets. These command line examples ought to assist restart a Mac regionally or remotely.

  • Facebook Open Graph META Tags

    It is no secret that Fb has change into a significant visitors driver for all sorts of internet sites.  These days even massive companies steer shoppers towards their Fb pages as a substitute of the company web sites immediately.  And naturally there are Fb “Like” and “Suggest” widgets on each web site.  One…

  • Conquering Impostor Syndrome

    Two years in the past I documented my struggles with Imposter Syndrome and the response was immense.  I obtained messages of help and commiseration from new net builders, veteran engineers, and even individuals of all expertise ranges in different professions.  I’ve even caught myself studying the submit…

  • Creating Spacers with Flexbox

    I used to be one of many largest followers of flexbox earlier than it hit however, as a result of being shuffled round at Mozilla, I by no means had the possibility to make use of it in any apply challenge; thus, flexbox nonetheless looks like a little bit of a thriller to me.  This tremendously…

  • Dress Up Your Select Elements with FauxSelect



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments