What is the difference between that and simply
reboot
? Doessystemctl reboot
have any benefits?34 0 ReplyWondering 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.30 0 Replyreboot
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.
26 0 ReplySysV, Upstart
10 0 ReplyGentoo uses OpenRC
9 0 Replyrunit
1 0 Reply
sudo reboot -h now
26 0 ReplyLet's get completely unnecessary:
# systemctl isolate runlevel6.target
19 0 Reply# init 6
17 0 ReplyYou, like me, must be old.
I also frequently pass
-l
to thessh
command.11 0 Reply
sudo shutdown -r now
12 0 ReplyI just flick the switch on the surge protector.
11 0 ReplyAlt+SysRq-O
9 0 Replysudo ps -ef | awk '{print $2}' | xargs -r kill -9
7 0 Replysudo reboot 0
...is my go-to.
6 0 Replyreboot -f
Because real men login as root and don't care about such silly things like an init system or file system syncing!
To quote the man page:
-f Does not invoke shutdown(8) and instead performs the actual action you would expect from the name.
14 0 Reply
Can you give Linus a Raiden hat?
18 0 ReplyPuTTY: "unexpectedly" disconnected.
15 0 ReplyDummy me I type "systemctl restart" instead 🤦♂️
15 0 ReplySudo shutdown now -r
8 0 Replyrun0 reboot
7 0 ReplyI've repurposed a broken T2 macbook with Ubuntu Server, but any time I issue a reboot command, it just shuts down, and I need to manually walk to my garage and boot it back up.
Does anyone know why I'm so stoopid?
7 0 ReplyI was having issues with my pc hanging on reboot, so i changed the bios to auto boot when power is applied, and use a smart switch to manually power cycle when it hangs.
Not sure if the mac bios supports that, but its worth a look
4 0 Reply
Alt-SysReq-B
5 0 Replywill shutdown now
'shut down' is two words, here.
3 0 Replythe meme spells it like the command
shutdown
;-)1 0 Reply
I will always use the GUI for this when given the option. Change my mind (you can't).
3 1 ReplyI won't try but I'll always use the command line.
It's faster for me! Ctrl+alt+T brings up terminal, sudo reboot. Enter.
2 0 ReplyI often remote into my machine, so it's a lot easier to type the command.
1 0 Reply
2 0 ReplyA stop job is running for ... (45min / no limit)
2 0 Reply
sudo
2 0 ReplyLive Mas as the root account
4 0 Reply