use 'shutdown -c' to cancel raspberry pi code example Example: turn of raspberry # in raspberry shell type: sudo shutdown now