how to shutdown raspberry pi with terminal code example
Example 1: how to shutdown raspbian command
#poweroff
sudo poweroff
#reboot
sudo reboot
Example 2: raspbian shutdown command
sudo poweroff
#poweroff
sudo poweroff
#reboot
sudo reboot
sudo poweroff