xxxxxxxxxx
# to reboot Raspberry Pi trough the terminal
sudo reboot
# to shutdown Raspberry Pi right now trough the terminal
# The added -h flag means to halt the system.
sudo shutdown -h now
# to shutdown Raspberry Pi in 10 minutes
sudo shutdown -h 10
# to shutdown Raspberry Pi at 19:45
sudo shutdown -h 19:45