Home Interests Raspberry Pi

Don’t Pull the Plug: How to Safely Shut Down or Reboot Your Raspberry Pi

howchoo   (433)
September 12, 2023
3 minutes


You'll Need 1

What you'll need
Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.
Posted in these interests:
pi • 91 guides

Like any computer, simply pulling the plug on your Pi can have dire consequences; but unlike most computers, the Raspberry Pi does not have a native power button. The following commands should be used to safely shut down or reboot your Pi. Obviously, these commands should be run from the command line. Note: You must have sudo privileges to run sudo commands. The default raspberry pi user has such privileges so this shouldn’t be an issue unless you’ve drastically altered your Pi’s user configuration.

1 – Shutdown command

sudo halt

This is shorthand for the following:

sudo shutdown -h now

An explanation:

sudo - run the command as superuser
shutdown - shut down the pi
-h - halt after shutting down (do not reboot)
now - do this now (required time command)

2 – Reboot command

sudo reboot

This is shorthand for the following:

sudo shutdown -r now

An explanation:

sudo - run the command as superuser
shutdown - shut down the pi
-r - reboot the pi after shutting down
now - do this now (required time command)

3 – Using a power button

You can also safely shut down the Pi by adding a Pi power button!

How to Add a Power Button to Your Raspberry Pi
Because you should always safely shut down your Pi.


HeaterMeter: Control your Grill Using a Raspberry Pi!

Fire up the summer with a new Pi project.
howchoo   (433)
November 28, 2023

With summer right around the corner, it’s time to fire up the grill! But who will watch the grill while you’re beating the heat? This year, kick things up a notch with your own Raspberry Pi-powered HeaterMeter. Don’t just throw a BBQ, be a part of it. HeaterMeter lets you keep a close eye on

Continue Reading


 433 guides

Introducing Howchoo, an enigmatic author whose unique pen name reflects their boundless curiosity and limitless creativity. Mysterious and multifaceted, Howchoo has emerged as a captivating storyteller, leaving readers mesmerized by the uncharted realms they craft with their words. With an insatiable appetite for knowledge and a love for exploration, Howchoo's writing transcends conventional genres, blurring the lines between fantasy, science fiction, and the surreal. Their narratives are a kaleidoscope of ideas, weaving together intricate plots, unforgettable characters, and thought-provoking themes that challenge the boundaries of imagination.

Discover interesting things!

Explore Howchoo's most popular interests.