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 Console Foundations Getting Started with the Console Running Commands

How do you find the etc directory? It doesn't show up on the ls -a command

See title

2 Answers

Aleksandra Klochko
Aleksandra Klochko
9,511 Points

in the home directory prompt ls /etc

Steve Gallant
Steve Gallant
14,943 Points

It is because the "etc" directory is not a sub-directory of your current directory, but rather it is located under the root location (aka "/"). That is why you must specify the slash when running the "ls -a" command for the "etc" directory while running the command from your current location. If you were to change directories up to the root, you could then leave out the slash character. hope it helps! Steve