rasp barry pi turn of the rasp barry code example Example: turn of raspberry # in raspberry shell type: sudo shutdown now