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

Yesterday I was working with the terminal where i install the most programs and packages, but I needed to change the directory to desktop(myusername@hostname-desktop:~$) and I did good,but now i want to change back to(myusername@hostname:~$)

I can't put it like it was before,because now its in desktop directory and cant do nothing personal to the system.

share|improve this question

Welcome to Ubuntu.

To change directories, use cd


If you do not put in an argument you will go to your home directory. You can also

cd ..

go up one directory.

See -

You may not get all the way through that site, but the initial information is invaluable.

share|improve this answer
+1 for, that's a very nice introduction to the command line (and basic bash scripting). – evilsoup Nov 12 '13 at 21:00

Using cd ~ will cd to your home directory.

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.