Best Answer: How Do I Switch to Superuser in Linux?
Contents

How do I switch to superuser in terminal?

To switch to the root user on Ubuntu-based distributions, enter sudo su in the command terminal. If you set a root password when you installed the distribution, enter su. To switch to another user and adopt their environment, enter su – followed by the name of the user (for example, su – ted).

How do I switch superuser to user?

You can switch to a different regular user by using the command su. Example: su John Then put in the password for John and you’ll be switched to the user ‘John’ in the terminal.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest