`poweroff --poweroff` 与 `poweroff` 的区别

`poweroff --poweroff` 与 `poweroff` 的区别

简单和简单之间有什么区别吗?

poweroff

poweroff --poweroff

答案1

您可以使用该man poweroff命令查看该poweroff命令的手册页:

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.

就像最后一句描述的一样,,halt --poweroffpoweroff --poweroff执行reboot --poweroff相同的操作。

相关内容