What exactly is execute permission of a directory? I always thought that I needed execute permission if I had to go into the directory by 'cd'. I want to know why the directory needs only read permission for ls but needs execute permission in addition to read for doing ls -l
To elaborate consider the following example.
I am a user and directory dir is owned by me. There are three files a, b and c in it.
If the permission of dir is dr-------- then I can do "ls dir"
But when I do ls -l dir, it doesn't show me any details other than the file names. Why does the directory need execute permissions for getting the i-node details?