How do I switch users in Linux? To change to a different user and create a session as if the other user had logged in from a command prompt, type “su -” followed by a space and the target user’s username. Type the target user’s password when prompted.
How do I change to a different user? Select Start , right-click the account name icon (or picture), then select Switch user. Select the Start button on the taskbar. Then, on the left side of the Start menu, select the account name icon (or picture) > Switch user > a different user.
Which command is used to change user in Linux? The su (short for substitute or switch user) utility allows you to run commands with another user’s privileges, by default the root user. Using su is the simplest way to switch to the administrative account in the current login session.
How do I switch users in terminal? The su command lets you switch the current user to any other user. If you need to run a command as a different (non-root) user, use the –l [username] option to specify the user account. Additionally, su can also be used to change to a different shell interpreter on the fly.