su -

The command that starts a shell as another user, root by default, after asking for that user's password.

In more detail

su - starts a full login shell with the target user's environment and home directory, while plain su keeps much of the caller's environment. sudo -i is the equivalent that asks for your own password instead and is logged per command.

Example

su - natasha

Related terms

Taught in

References

Certification courses