The title says it all: What is the difference between executing shutdown -r
and reboot
?
Ubuntu – the difference between reboot and shutdown -r
rebootshutdown
rebootshutdown
The title says it all: What is the difference between executing shutdown -r
and reboot
?
Best Answer
Nothing, both of them do the same task.
From the respective man pages:
man
reboot
:man
shutdown -r
:Without the
-f
option forreboot
, it will gracefully terminate all processes, sending signal 15. However, usingreboot -f
will invoke thereboot(2)
system call itself (withREBOOTCOMMAND
argument passed) and directly reboots the system.From a similar question on Unix and linux:
Internally,
reboot
usesshutdown -r
.