How to shut down or restart Linux / Raspbian from command line?

To shut down:

sudo halt now

To restart:

sudo reboot

or

sudo halt -r now

(Visited 9,146 times, 1 visits today)