how to shutdown the rasberri pi from the terminal code example Example: how to shutdown raspbian command #poweroff sudo poweroff #reboot sudo reboot