Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

During the setup I'm asked to type in my name and the computers name.
After the OS is installed, how can I know those?

share|improve this question
Your question is unclear a bit. However, you can go to recovery mode and command shell and from there run following commands: "hostname" - output computer's name, "lastlog" - output all users on computer, the last one probably is the user you created when os was installing. – Victor K Oct 27 '13 at 20:49


enter image description here

Your username is usually your first name when you enter your first name and surname into the designated box during the installation process. The username is always in small caps, but at the graphical login screen your full name is shown in the default installation and you just need to remember your password. Alternatively you could also boot live media, mount the file system and look in the directory home of your installation to see which accounts exist. Digging deeper you can find all user and system accounts in /etc/passwd.

User password

You have to remember the password before you continue, or you would normally not be able to login. But you can reset your password.


enter image description here

You don't need to remember your computer name or hostname, as this is shown to you at graphical and terminal login. Unless you don't customize this, the device name of your computer or motherboard is picked and probably stripped of some numbers to look nicer and your username is added. So your computer could be named Thinkpad-$Yourname, ProBook-$Yourname, Zenbook-$Yourname if that's what you have. The hostname is defined in /etc/hostname.

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.