Shutdown and restart Mac from command line

To shutdown:

sudo shutdown -h now

To restart

sudo shutdown -r now
Technologies: 
Actions: