su Command in Linux with Useful Examples

The su command is also known as switch user. This command is used to become another user during a login session. When invoked without a username, su defaults switch to the super user. Basically, the…