raspberry pi turning on and off code example Example: turn of raspberry # in raspberry shell type: sudo shutdown now