I've followed a couple of tutorials on my RPi and a lot of commands start with sudo; what does it mean and what does it do?
|
|
You must always understand what a command is doing before you run it. Why do we have
|
|
Do you think information on su might be useful to really complete the answer? – Alex L Jun 14 '12 at 14:38 |
||
Further to this, I tend to write "sudo bash" as soon as I load my pi to avoid having to type sudo all the time. This lets you run everything with super user privileges. This is obviously a little dangerous, but with the rpi there is little majorly bad that you can do. – phalt Jun 14 '12 at 15:50 |
|||
|
|||
|
|
There's a great explanation / guide on sudo here. You usually use it to execute a particular command as root, rather than your current user. For security reasons the norm in the Linux world is for your main user to have limited privileges, and for you to switch to root whenever you need to do something you don't have privileges for (such as installing packages.) Root is a bit like administrator in the Windows world - it's your ultimate "can-do-anything" user. |
|||
|
|