xxxxxxxxxx
Control–Option–Command–Power button*
# or
Control–Option–Command–Media Eject
# Quit all apps, then shut down your Mac.
# If any open documents have unsaved changes,
# you will be asked whether you want to save them.
Terminal:
$ sudo shutdown -h now