The sudo command allows to the administrator(s) of the operative system to realize operations that a common user might not be allowed to do.
- the `su` (of sudo) meant SuperUser
- while the `do` means just do
If you type
$ cp file.pdf /root
the system will try to copy the file.pdf to the root account, however you are not allowed to write anything in the root account… unless you are the administrator,
$ sudo cp file.pdf /root
NOTE: if you have administrator power, the password you should introduce when the system ask, is your own.
NOTE 2: Once you use the sudo command the terminal will remain (for a while) open to administrator instructions. So, if you don’t want that someone mess up your system always CLOSE the terminal where the sudo command has been used.
The sudo command allows you to updat and/or upgrade your system, install, re-install, remove or stick applications, libraries… et cetera.
NOTE 3: Even if you have administrator power, do not use it unless you know what are you doing.