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

iOS

cd projects not working

At the 4:47 mark of the video, when I enter cd projects/, I get a "no such file or directory" message.

This happened before earlier in the video, but I was able to get in by doing "Users/myusername/Downloads/treehouse." I tried doing that again here going deeper into the projects file, but it did not work.

Any ideas?

1 Answer

if the location you're looking for exists (you should be able to see the files in the left hand side of the workspace), then traversing the directory structure should be a matter of your current directory (reflected by the prompt), and using cd to get into subdirectories or using a directory styles relative to root (i think it accepts / ) or home (probably $HOME or ~). The ls command can be used to view the contents of the current directory. cd .. goes up a directory. (they have a linux console course that does basic syntax). But cd projects should work if there is projects directory and you're in the folder that contains it.