Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Ubuntu: Switch to a user

Posted on 2011-09-11
2
Medium Priority
?
395 Views
Last Modified: 2012-05-12
Hi,

1) I have a linux workstation (Ubuntu 10.04.3)

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

Jack@ubuntu-10:~$

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

tjie
0
Comment
Question by:tjie
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 1600 total points
ID: 36519681
Type in

exit

or

Ctrl-D
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 400 total points
ID: 36519684
Issue

exit

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

wmp
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

916 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