FAQ Item 17, "ls -d does not list directories!", located here
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#ls-_002dd-does-not-list-directories_0021 includes the following rhetorical exchange:
But I expected to see all of the directories.
That would be the output of `ls -l' without the -d option.
I imagine many people asking this particular frequent question are trying to list all *and only* the names of directories in the current directory, in which case a more suitable suggestion is `ls -ld */', or simply `ls -d */'. Appending, to the dialogue above, the following exchange would be a simple way to incorporate it:
But I expected to see all *and only* the directories.
That would be the output of `ls -ld */', or just `ls -d */'.
