how to turn off a raspberry pi 4 code example Example: turn of raspberry # in raspberry shell type: sudo shutdown now