Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Difference between shutdown -r and shutdown -P?

Writer Matthew Martinez

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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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