Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

Welcome to Ubuntu.

To change directories, use cd

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 - http://linuxcommand.org/

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

share|improve this answer
    
+1 for linuxcommand.org, 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

 
discard

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.