How to Reboot/Shut Down Raspberry Pi – Guide

When RPi (or any other UNIX-like system) shuts down or restarts properly using terminal commands or their GUI equivalents, it first tries to shut down all processes properly by sending them a SIGTERM signal asking them to save data and shut down. After a while it sends SIGKILL to all remaining processes, disconnects all file systems and sends the appropriate command to the ACPI power management interface. When RPi (or any other UNIX-like system) shuts down or restarts properly using terminal commands or their GUI equivalents, it first tries to shut down all processes properly by sending them a SIGTERM signal notifying them to save data and shut down. After a while it sends SIGKILL to all remaining processes, disconnects all file systems and sends the appropriate command to the ACPI power management interface. This is done by calling the shutdown(8) program. If you want to turn off the Raspberry Pi, it is not a good idea to simply unplug it. The reason for this is that the Raspberry Pi may still be writing data to the SD card. In this case, turning it off can lead to data loss or worse, a damaged SD card. Before turning off the Raspberry Pi, you should always safely turn it off. You can do this from the command line or from the GUI menu on the desktop. Both methods are presented below, including special options for the terminal command.

How to Shut down or restart the Raspberry Pi

shutdown command

reset command

Final note

I hope you like the guide How to Reboot/Shut Down Raspberry Pi. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.