sudo reboot on raspberry code example Example: how to do a sudo reboot on raspberry pi $ sudo reboot $ sudo shutdown -r now $ sudo shutdown -Hr now