How Do I Switch to Root in Linux?
Contents

To change user to root account, simply run “su” or “su –” without any arguments.

How do I revert back to root?

in terminal. Or you can simply press CTRL + D . Show activity on this post. Just type exit and you will leave the root shell and get a shell of your previous user.

How do I change from root to normal?

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.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest