Quick Answer: How Do I Get the Root Back in Ubuntu?
Contents

2 Answers. From what I gather you’re simply trying to return to your user account after gaining access to root. in terminal. Or you can simply press CTRL + D .

How do I go back to root user in Ubuntu?

File & Directory Commands

  1. To navigate into the root directory, use “cd /”
  2. To navigate to your home directory, use “cd” or “cd ~”
  3. To navigate up one directory level, use “cd ..”
  4. To navigate to the previous directory (or back), use “cd -“

How do I get to the root user in Linux?

What to Know

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

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest