su command changes the shell to be used as a super user and until you use the exit command you can continue to be the super user
$ sudo shutdown 2
$ sudo shutdown –r 2
Runs a command as another user (usually root).
sudo apt update