关机 -r 和关机 -P 之间的区别?

use*_*580 1 shutdown

shutdown -r和 和有shutdown -P什么区别?

Tho*_*s K 6

您可以通过键入以下命令获取有关命令的信息:

man <command>
Run Code Online (Sandbox Code Playgroud)

对于shutdown您获得的命令:

OPTIONS
   -r     Requests that the system be rebooted after it has been brought down.

   -h     Requests that the system be either halted or powered off after it has been brought down, with  the  choice  as  to
          which left up to the system.

   -H     Requests that the system be halted after it has been brought down.

   -P     Requests that the system be powered off after it has been brought down.

   -c     Cancels a running shutdown.  TIME is not specified with this option, the first argument is MESSAGE.

   -k     Only send out the warning messages and disable logins, do not actually bring the system down.
Run Code Online (Sandbox Code Playgroud)