I just reset my username and password and am logging in for the first time since reset. After entering username and password, I get a prompt
username@ubuntu:~$
What do I type in for that?
I just reset my username and password and am logging in for the first time since reset. After entering username and password, I get a prompt
username@ubuntu:~$
What do I type in for that?
The prompt ~$
means you are currently in your home directory (indicated by ~
) and you are a normal user (not super user) indicated by $
.
For a normal user:
username@ubuntu:~$ pwd
/home/username
username@ubuntu:~$ whoami
username
For root (check #
):
root@ubuntu:~# pwd
/root
root@ubuntu:~# whoami
root
To getting started to using the terminal read this documentation properly.
Is this prompt a terminal/shell screen? If so, it denotes you are at your home directory. The ~
is shorthand for /home/$USER/ dir and the $
denotes the line of the console in which your user is typing.
If you are confused by the terminal prompt, and are expecting a GUI Desktop, you may not have one installed or loaded (such as "Unity" or "GNome").
Try searching the web for various desktop environments for Ubuntu. The great thing about Linux/Ubuntu is options! Here is a default means of installing a desktop:
sudo apt-get install ubuntu-desktop
Check out this answer as well: How to install GUI desktop on a server?. I would encourage you to check out some other options first, then decide which you think you will like best.
You can spot check internet connectivity with:
ping www.google.com
or:
curl www.google.com
(if you dont have curl
installed by default, see below)
From the command line, you can install most programs with the following command:
apt-get install <package-name>
For help, try man apt-get
username@ubuntu:~$
now displays? Is this a virtual console (accessed like Ctrl+Alt+F1)? Did you boot in recovery mode, or perhaps from a live CD/DVD/USB? Are there instructions online that you followed but now are confused about how to finish using? If so, can you summarize them and also provide a link. (You can edit your question to provide this information.) I recommend holding off on attempting to install software until you, and we, have a clear understanding of how your current problem arose.
– Eliah Kagan
Apr 09 '15 at 20:37
username
is your identity
machine name is ubuntu
and you are logged in
Current directory is ~
which now is a shortcut for /home/username/
The prompt $
means you can type here.
Welcome to your shell command line, aka read, evaluate, print and loop (REPL). I recommend man bash
next, which is the name of the program that listens to your typing.
username@ubuntu
, or does it show you actual username forusername
? Or is the situation simply that you're still in the recovery shell or live CD/DVD/USB environment from which you repaired Ubuntu? – Eliah Kagan Apr 09 '15 at 20:34