Commands to shut down and reboot your Raspberry Pi
We all know that you can shutdown your raspberry Pi by pulling the power cable out of the raspberry Pi or by turning the power supply off at the power switch.
However this can create problems by corrupting you SD card resulting in strange things happening when the Raspberry Pi is running or the Raspberry Pi not turning back on again after you powered it off using the above shutdown method.
To make sure this does not happen to you need to use the following commands
In the GUI
In the GUI left click in the bottom left hand corner on the blue cross to display the options menu (Like the start button in windows) go to accessories and then left click on LXterminal to display the terminal window
From the terminal window inside the GUI or direct from the command line
Type in the following command to shut down your Raspberry Pi
sudo shutdown or Sudo halt
(we use sudo command for “run as admin” as the standard account is not an admin)
(You can not shutdown or reboot the raspberry pi with a normal account)
Type in the following command to shut down your Raspberry Pi
sudo reboot
(we use sudo command for “run as admin” as the standard account is not an admin)
(You can not shutdown or reboot the raspberry pi with a normal account)
This will then start the shutdown or reboot producer once complete you can then power off your Raspberry Pi
-
December 3, 2013 at 10:10 amCommands to shut down and reboot your Raspberry Pi | Frustrated IT Engineer | blog