How to Shut Down and Reboot Your BeagleBone

By Rui Santos, Luis Miguel Costa Perestrelo

There are better ways to shut down and reboot your BeagleBone than simply unplugging it. Unceremoniously unplugging your BeagleBone is the equivalent of shutting down your computer by pressing the power button or even removing its power source, which sometimes leads to complications such as file corruption.

To shut down your BeagleBone, simply type this command on the command line:

debian@beaglebone:~$ sudo shutdown -h now

You see the following information after you use the shutdown command:

Broadcast message from root@beaglebone (pts/0) (Thu Jul 3 18:50:09 2014):
The system is going down for system halt NOW!
debian@beaglebone:~$

To reboot, type this:

debian@beaglebone:~$ sudo reboot

This is the result:

Broadcast message from root@beaglebone (pts/0) (Thu Jul 3 18:44:29 2014):
The system is going down for reboot NOW!

You need to log in again through secure shell (SSH) after rebooting.