Difference Between Shutdown -R and Shutdown -P?

Difference Between Shutdown -R and Shutdown -P?

What's the difference between shutdown -r and shutdown -P?

3 Answers

You can get information about commands by typing:

man <command>

For the shutdown command you get:

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.

The shutdown process normally takes 30 seconds to allow each running service time to stop. Services are shutdown in alphabetical order.

-r Reboot the system when shutdown is complete.

-p Turn off the system without time-out or warning similar to -h

shutdown -p will power off your system.

shutdown -r will restart it.

3

Your Answer

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

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.