Executable directory general question

This may be a dumb question (but this is the UNIX for Dummies Q&A forum :slight_smile:

But I'm wondering, what is the purpose of a directory being given execute permissions? I can't execute a directory, only files, right? If I make a directory executable, the files inside still won't execute unless I give the files execute permissions (I just tested it). So what is the purpose of directories being given X??

Thanks!

It gives access to the dir. e.g cd.