su means switch user on Linux/Unix. su username switches your shell to another user and usually asks for that user’s password

I sometimes get confused between sud and sudo.
if you use su -. The - tells su to simulate a full login for that user, so it changes things like HOME, USER, LOGNAME, SHELL, PATH, and working directory. Plain su username switches the user but generally preserves more of your existing environment.

Commands

su - Switch user to root - needs root’s password.
su bob - Switch user to bob - needs bob’s password.
su - - Switch user to root and get their login environment - think full re-login.