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