Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I normally use reboot to restart my Linux box, but a friend said that I should use shutdown -r now instead. Is there any difference?

Looking at the man pages tells me something about run levels, but I'm hoping for an answer in simple English that a relatively inexperienced Linux user can understand.

share|improve this question

migrated from Aug 13 '10 at 5:55

This question came from our site for professional and enthusiast programmers.

Many Unix systems have reboot perform an instant reboot -- no syncing, no umounting, nothing. It's just like hitting the reset button.

Your friend is trying to save you hours of fscking, or worse, if you ever wish to reboot one of those systems.

share|improve this answer
For example, this is the behavior for reboot on Mac OS X, so already we're talking about the majority of deployed end-user UNIX systems. As per Shakedown's answer, this likely varies between different *NIX types. – NReilingh Aug 13 '10 at 6:16

There are likely slight differences in the functionality offered, but they can both be used to achieve the same thing. In fact, here's what the manual page for reboot says:

When called with --force or when in runlevel 0 or 6, this tool invokes the reboot(2) system call itself and directly reboots the system. Otherwise this simply invokes the shutdown(8) tool with the appropriate arguments.

Also, it appears that the RUN-LEVEL info for both operations is the same. Judging from the manual pages of both reboot and shutdown, it looks like shutdown provides a bit more lower-level functionality, and reboot is a higher-level tool that uses shutdown.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .