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 trialMaja B.
12,984 PointsConsole 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
15,622 PointsHi 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.
12,984 PointsMaja B.
12,984 PointsHi, 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.
12,984 PointsMaja B.
12,984 PointsBy the way ... I'm using Git Bash ...
Hugo Paz
15,622 PointsHugo Paz
15,622 PointsIts just cd..
The rest was just to explain.
Maja B.
12,984 PointsMaja 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
15,622 PointsHugo Paz
15,622 PointsLooks like git bash is like Mac OS.
Its cd ..
Here's the full list
Maja B.
12,984 PointsMaja B.
12,984 PointsGreat! That works. Thanks! And thanks for the link, Maja