You are not logged in.

#1 2021-01-26 14:01:13

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

[SOLVED] Best reboot/shutdown method from console? (Does it matter?)

When running XFCE, I can use the "reboot" option via the panel menu.  But I often use the console terminal, where I have these options:

<Press CTRL-ALT-DEL>
reboot
systemctl reboot
shutdown -r now

They all seem to do the same thing.  But are there any technical differences?  Is there a "best practise" way to reboot (and shutdown) Arch?

Cheers :-)

Last edited by esuhl (2021-01-27 16:35:35)

Offline

#2 2021-01-26 14:02:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,351

Re: [SOLVED] Best reboot/shutdown method from console? (Does it matter?)

they all do the same thing, reboot and shutdown are simply old compatibility symlinks that will at the end of the day do the relevant systemctl action, with a bit of special handling to handle the various options you can pass to shutdown, but that's handled internally by systemd

Last edited by V1del (2021-01-26 14:03:47)

Offline

#3 2021-01-27 16:35:19

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Best reboot/shutdown method from console? (Does it matter?)

Brilliant -- thanks for confirming that I don't need to worry which method I use. :-)

Offline

#4 2021-01-27 17:34:54

tpfkanep
Member
From: South Africa
Registered: 2009-12-15
Posts: 134

Re: [SOLVED] Best reboot/shutdown method from console? (Does it matter?)

Kexec is also a nice option for rebooting.

Offline

Board footer

Powered by FluxBB