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