sgutdown pi code example Example 1: raspberry pi reboot command sudo reboot Example 2: turn of raspberry # in raspberry shell type: sudo shutdown now