sudo: temporarily switch to Superuser mode to perform superuser privileges, prompting for a password that is the current user's password, not the password for the super account. However there is a time limit, Ubuntu defaults to 15 minutes for one time.
SU: Switch to a certain user mode, prompted to enter the password when the password is Switched account password, the use of "SU account name." If the system defaults to the root account when no account is added, the password is also the password for the super account. There is no time limit.
Sudo-i: You can use this command to frequently perform certain permissions that only the superuser can perform, without having to enter the password each time. When prompted for a password, the password is the password for the current account. There is no time limit. After executing the command, the prompt changes to "#" instead of "$". You can perform "exit" or "logout" when you want to return a regular account.
Ubuntu su sudo sudo–i difference