What is the difference between that and simply
reboot
? Doessystemctl reboot
have any benefits?reboot
is linked (aliased) to your init program. In the case you are using systemd then it’s equivalent tosystemctl reboot
.reboot
is generic and calls whatever init program you use.There are more than one init. Like for example GNU Shepherd.
Gentoo uses OpenRC
SysV, Upstart
Wondering the same
Edit: after a quick google session it seems like usually the
reboot
command is linked tosystemctl
so it should be pretty much the same thing as far as I understand.
sudo reboot -h now
Let’s get completely unnecessary:
# systemctl isolate runlevel6.target
# init 6
You, like me, must be old.
I also frequently pass
-l
to thessh
command.
sudo shutdown -r now
sudo ps -ef | awk '{print $2}' | xargs -r kill -9
Alt-SysReq-B
Can you give Linus a Raiden hat?
Sudo shutdown now -r
Sudo reboot now