Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Maja B.
Maja B.
12,984 Points

Console Foundations - How to move to the directory c/xampp/htdocs/webiste?

Hi, using console I'm trying to move to the directory c/xampp/htdocs/website.

Currently I'm on Maja@PC, this means here: My Computer/Local disc C/Users/Maja.

But how do I go 2 directories up (Users > Local disc C) and than 3 directories down (xampp/htdocs/webiste).

Namely, the directory Local dics C contains the directory Users as well as the directory xampp.

Thanks for help, Maja

1 Answer

Hugo Paz
Hugo Paz
15,622 Points

Hi Maja,

I assume you are in a windows machine,

Try:

cd.. --- (go up to Users), cd.. --- (go up to Local disc), cd xampp --- (enter xamp dir), cd htdocs --- (enter htdocs dir), cd website --- (enter website dir)

Maja B.
Maja B.
12,984 Points

Hi, Hugo, Yes, I'm on windows. But if I type cd.. --- (cd, two dots, one space, three dashes) I get "command not found".

Maja B.
Maja B.
12,984 Points

By the way ... I'm using Git Bash ...

Hugo Paz
Hugo Paz
15,622 Points

Its just cd..

The rest was just to explain.

Maja B.
Maja B.
12,984 Points

:))) I could have guessed ...

but ok, now I've typed in cd..

and again it says "command not found"

Hugo Paz
Hugo Paz
15,622 Points

Looks like git bash is like Mac OS.

Its cd ..

Here's the full list

Maja B.
Maja B.
12,984 Points

Great! That works. Thanks! And thanks for the link, Maja