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.


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

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

  • +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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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