Back in the day, I used to care for a couple of labs full of Macs. Invariably, I’d find myself in the lab at the end of the day, shutting them all down for the night. I’d run up and down the rows of eMacs or whatever they were at the time, and hit the power button, then click on the Shut Down button. Or, if I was feeling frisky, I’d just hold down the power button until they shut off.
This took some time, needless to say. I wish I’d known of these useful keyboard commands to shut down or sleep the Macs, saving myself several minutes each day.
Key commands to shut down Mac (or make it sleep)
Shut down your Mac
To simply shut down your Mac safely and securely — letting all the background voodoo happen automatically — hit Control-Option-Command-Power (or Control-Option-Command-Eject). This will quit open programs and shut down your Mac without you needing to intervene or hit a confirmation button. This is an extremely helpful keyboard shortcut.
[contextly_auto_sidebar]
Put your Mac to sleep
If you want to send your Mac to sleep, hit Option-Command-Power (or Control-Option-Command-Eject). Your Mac will go to sleep, gently and effortlessly. It’s like a narcolepsy command for your Mac.
Put your Mac display to sleep
If you want to put only the display to sleep, effectively locking your Mac (provided you have a wake from display sleep password), just hit Control-Shift-Power (or Control-Shift-Eject).
Restart your Mac
And, of course, if you want to restart your Mac, hit Control-Command-Power (or Control-Command/Eject for a quick reboot of your favorite machine.
All in all, this should save you a bit of time each day, which can add up!
Via: Stack Exchange