Skip to Content
Learn Robotics Programming
book

Learn Robotics Programming

by Danny Staple
November 2018
Beginner
472 pages
13h 5m
English
Packt Publishing
Content preview from Learn Robotics Programming

Shutting down your Raspberry Pi

When you are done with the Pi for a session, it's not very nice to the filesystem to just unplug it.

Pulling power from the Raspberry Pi when it is not expected can cause loss of files and SD card corruption. You may lose your work on it and you may also damage the SD card enough to need to replace it. Always use the correct shutdown procedure.

It's strongly advised to tell it to shut down. To do this, use the following command:

pi@myrobot:~ $ sudo shutdown -h now

Wait for the green light activity to stop; PuTTY will detect it has disconnected. You can now safely disconnect the power from the Raspberry Pi.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming - Second Edition

Learn Robotics Programming - Second Edition

Danny Staple

Publisher Resources

ISBN: 9781789340747Supplemental Content