Ubuntu: Switch to a user

Posted on 2011-09-11
Last Modified: 2012-05-12

1) I have a linux workstation (Ubuntu 10.04.3)

2) I open a terminal and it appers like this:


3) Now, I want to change to "root"; i do the followings:
sudo -s
4) And it changes like this --> root@ubuntu-10:~#

5) After quite sometimes, I want to change back to "jack@ubuntu-10:~$"
- I issue the command --> sudo jack
- The message: sudo: jack: command not found

6) My question: What is the command to change from "root@ubuntu-10:~#" to "jack@ubuntu-10:~$?

7) Thank you

Question by:tjie
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 48

Accepted Solution

Tintin earned 400 total points
ID: 36519681
Type in



LVL 68

Assisted Solution

woolmilkporc earned 100 total points
ID: 36519684


to return to your original shell (the one you issued "sudo" from).


Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question