LinuxTechi - https://www.linuxtechi.com/quick-tips-sudo-command-linux-systems/
sudo stands for superuser do. It allows authorized users to execute command as an another user. Another user can be regular user or superuser. However, most of the time we use it to execute command with elevated privileges.
sudo command works in conjunction with security policies, default security policy is sudoers and it is configurable via /etc/sudoers file. Its security policies are highly extendable. One can develop and distribute their own policies as plugins.
How it’s different than su
In GNU/Linux there are two ways to run command with elevated privileges:
Using su command Using sudo command