The sudo command is at /usr/bin/sudo on my Xubuntu 16.04
I'm interested to know if anyone can advise which program I could use to open this sudo file and see what the sudo command is made up of?
I tried using a regular text editor but the file isn't correctly encoded so I can't see anything useful.
31 Answer
sudo is a command and it is an executable program.
You can find out more about how to use it using these commands in the terminal (in order of least -> most detailed):
sudo --help
man sudo
info sudoTo understand more about how it works, you can visit the sudo website where you can browse the source code. You can also download the source code:
First edit /etc/apt/sources.list
sudo nano /etc/apt/sources.listyou will see these lines near the beginning:
deb xenial main restricted
# deb-src xenial main restrictedYou have to uncomment the deb-src line (remove the #) so it says:
deb xenial main restricted
deb-src xenial main restrictedSave the file and exit. Now run sudo apt update and then, to dowload the source code package to the current working directory
apt source sudoSuper short summary: sudo is short for 'superuser do' meaning 'execute the following command as the superuser'. Thus, it grants the humble user root privileges for one command and any commands triggered by that command.