-1

Is there some difference here between simple

poweroff

and

poweroff --poweroff
3

FFS! Read man poweroff! It says, in part:

NAME

       halt, poweroff, reboot - Halt, power-off or reboot the machine

SYNOPSIS

       halt [OPTIONS...]

       poweroff [OPTIONS...]

       reboot [OPTIONS...]

DESCRIPTION

       halt, poweroff, reboot may be used to halt, power-off or reboot the machine.
<...snip...>

       -p, --poweroff
           Power-off the machine, regardless of which one of the three commands is invoked.

Thus, halt --poweroff, poweroff --poweroff and reboot --poweroff are the same.

  • man NAMEOFCOMMAND makes this kind of information available to you from any shell prompt. It's useful to know. – K7AAY Jul 2 '18 at 23:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.