Some new Mac users, without knowing the existence of universal shortcut to directly shut down their Mac, would go for the menu bar, search for the apple logo, choose the option, and confirm from the prompted dialog box.
All of these hassles can be replaced with keystrokes:
The same applies for restart, only single keystrokes needed:
And to put the computer to sleep: Cmd-Opt-Eject.
Note. These shortcuts, except for restart, will take the action immediately without prompting dialog box asking for confirmation. Make sure you save all your works beforehand.
Some articles taken from our resource base, tightly related to current article, to empower you with more knowledge on tweaking the most out of your Mac.