What is the difference between reboot and shutdown -r?
24,767
Nothing, both of them do the same task.
From the respective man pages:
reboot, halt, poweroff
These programs allow a system administrator to reboot, halt or poweroff the system.
Requests that the system be rebooted after it has been brought down.
Without the -f
option for reboot
, it will gracefully terminate all processes, sending signal 15. However, using reboot -f
will invoke the reboot(2)
system call itself (with REBOOTCOMMAND
argument passed) and directly reboots the system.
From a similar question on Unix and linux:
Internally, reboot
uses shutdown -r
.
Related videos on Youtube
![Ahmadgeo](https://i.stack.imgur.com/YF96u.jpg?s=256&g=1)
Author by
Ahmadgeo
Updated on September 18, 2022Comments
-
Ahmadgeo almost 2 years
The title says it all: What is the difference between executing
shutdown -r
andreboot
? -
Ahmadgeo about 10 yearsWill they both reboot the system after gracefully stopping running services? I usually user reboot, but I have a concern that it terminates running processes.
-
jobin about 10 yearsAnswered your comment in the answer, please have a look.
-
Gyergyói Dávid over 3 yearsThen why can my system froze by the reboot command and why not when I use 'shutdown -r now'?