0

I have got Raspberry Pi 2 Model B v1.1 with NOOBS v1.4.2 Raspbian loaded.

What is the difference between

$ sudo reboot 

and

$ reboot 

typing in terminal?

closed as off-topic by Ghanima, Phil B., mpromonet, Patrick Cook, Jacobm001 Oct 26 '15 at 20:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Ghanima, Phil B., mpromonet, Patrick Cook, Jacobm001
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    sudo runs the command as root, if reboot without sudo works it is because it was setup in /etc/sudoers for your user to use without entering a password. In the end the same command is being run. – Steve Robillard Oct 23 '15 at 16:48
3

Adding sudo before a command runs the command as if you were the user root. Some commands require to be run as root because it is the highest user by default. When you run sudo reboot you are running reboot from root. If you just type reboot you are running reboot from your current user, which may not have the necessary permissions to enter system commands like that.

Not the answer you're looking for? Browse other questions tagged or ask your own question.