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.
SysV, Upstart
Gentoo uses OpenRC
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.I didn’t get that.
Checked the
man
and it’s not deprecated. So what does it have to do with “old”?Nowadays most Linux users seem to use
ssh user@host
. When I was getting started, that didn’t exist (or at least I was unaware of it) so I still frequently use the-l
flag instead.Nothing wrong with it, just that at least I mostly encounter its use by experienced users.
OIC. Good to know in case I ever have to work on some old CentOS 5 box lying around ever again.
It also looks kinda proper, using that instead of the, so when making shell scripts, I might want to prefer this.
some old CentOS 5 box
I just flick the switch on the surge protector.
sudo shutdown -r now
Alt+SysRq-O
Can you give Linus a Raiden hat?
Dummy me I type “systemctl restart” instead 🤦♂️
Sudo shutdown now -r
Sudo reboot now
run0 reboot
I’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?
I 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
Alt-SysReq-B
will shutdown now
‘shut down’ is two words, here.
the meme spells it like the command
shutdown
;-)