I just realized that /usr/bin/poweroff and /usr/bin/shutdown are symbolic link to systemctl, but I don't know how systemctl is being run.
so is there any difference between /usr/bin/poweroff and /usr/bin/shutdown?
EDIT: when I call any of these two programs, systemctl is being executed but I don't know what command/parameter is passed to systemctl.
when I type systemctl --helpthere are two options that may come into play
- halt Shut down and halt the system
- poweroff Shut down and power-off the system
but something tells me that both poweroff and shutdown are the same in here (I'm guessing)
I'm running Archlinux
poweroffis equivalent toshutdown -hP. It's equivalent to that in the van Smoorenburg toolset, but in the systemd toolset both the-hand-Poptions are the defaults anyway and it is equivalent to plainshutdown now. Thenowis important, by the way. https://unix.stackexchange.com/a/196471/5132 https://unix.stackexchange.com/a/465337/5132 – JdeBP Sep 05 '18 at 17:15nowis important (as +mmm minutes, btw) but the OP was asking about differences, not syntax ;) – Daniele Santi Sep 05 '18 at 18:38nowis important because without it there is a difference. Pay close attention to the user manual of the systemd toolset. – JdeBP Sep 06 '18 at 00:44