Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Going Further with HTML Root-relative Paths

2 Answers

Steven Parker
Steven Parker
215,954 Points

If you know what a "folder" is on other operating systems .. well, "directory" is just another name for the same thing. It's a way to group files together on the storage device.

From the command line, you can change your current directory with the "cd" command. Just put the name of the directory you want to move to after the command.

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

To expand on Steven parker's answer:

  • ".." represents the parent directory.
  • "." represents the current directory.

To move out of the current directory and into the parent directory you would use: cd ..

To move into a subdirectory that's within the current directory you would use: cd NAMEOFFOLDER

Replace "NAMEOFFOLDER" with the folder name you want to change into.

Steven Parker
Steven Parker
215,954 Points

:warning: To move to a subdirectory of the current one, you do not type a slash ("/") before the name. The slash creates an absolute path based on the file system's root.