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

HTML HTML Links Websites: Part 2

MELVIN GEORGE
MELVIN GEORGE
3,490 Points

" . ."(Dot ,Dot )problem with anchor...?

What should i do if want to go FOUR Levels up from my_directory folder...?

1 Answer

Stephen Bone
Stephen Bone
12,359 Points

Hi Melvin

I may not have understood the question properly but can't we just use .. for each level as in:

../../../../directory_name

Hope it helps!

Stephen

MELVIN GEORGE
MELVIN GEORGE
3,490 Points

Thank You Sir, Yes It WORKED....!

Chris McKirgan
Chris McKirgan
5,666 Points

To add some extra information for those who land here - in Unix systems a single full-stop means "the current directory":

.

Likewise, two full-stops mean "the parent directory":

..

A forward slash represents a directory divider, so to go back two parent directories:

../../

A single forward slash means "the root directory". This is why you see a forward slash on the end of a domain name:

www.example.com/