su โ€” Run a Shell as Another User

su starts a shell as another user. It is commonly used to switch to the root account or to test commands under a different account. Switch to another user su – username The hyphen starts a login shell, so the target user’s environment is loaded. Switch to root su – This normally asks for the … Read more