This recipe shows how the Raspberry Pi can be powered off safely.
Before powering off the Raspberry Pi, it is important to first shut down the operating system so that all of the applications and services on the Raspberry Pi have a chance to complete any disk writing that may be in progress and to prepare for the next boot.
External devices, such as hard disks, also need time to shut down and flush their buffers. The
shutdown command also gives the devices attached to the Raspberry Pi an opportunity to clean up and prepare for the next boot.
After completing this recipe, you will be able to power off the Raspberry Pi safely.
Here are my ingredients: