To turn off my system, I can use one of these three commands:

sudo halt


sudo poweroff


sudo shutdown -h now

What are the differences between these commands, or are they all just aliases of each other?

  • 1
    This question is marked as duplicate, but the "answers" just raise more questions - at least for those not intimate with the inner workings of Linux. On Raspbian which is still init based reboot and poweroff are links to halt. shutdown is different (the differences described in the answers). Ubuntu MATE for the Pi2 is systemd based and all 4 are links to /bin/systemctl – Milliways May 26 '15 at 0:36

halt terminates all processes and shuts down the cpu.

poweroff is exactly like halt, but it also turns off the unit itself (lights and everything on a PC). It sends an ACPI command to the board, then to the PSU, to cut the power.

shutdown is like poweroff, but it also runs the shutdown scripts.




Not the answer you're looking for? Browse other questions tagged or ask your own question.