Wed Jun 01, 2016 4:55 pm
This depends somewhat particularly if we're talking about the RPi, and if you're the pi user...
... this depends on what you know about sysvinit vs systemd. These two facilities are used to control the control of the system, init. The old way was sysvinit. The new way, beginning with Jessie, is systemd. The reason is that debian switched to systemd with Jessie 8. Raspbian Jessie followed suit.
reboot, halt, shutdown, and poweroff all symbolically link to systemctl. So, for instance:
sudo systemctl poweroff
... is the 'actual' command on Jessie, with systemd. Similarly with halt, and reboot.
How the implementers went from sysvinit to systemd (using systemctl) is a detail that leaves some scratching their heads... why? what? &c
The best thing I can recommend for you is to study systemd, particularly systemctl &c
marcus
