I've been trying to get the ls command to work as advertised. Could it be that the version of ls and the man page are not the same? The man page says:
However, "ls -d" only shows the current directory. What do other people do to only show directories?
-d, --directory
list directory entries instead of contents, and do not deref‐
erence symbolic links
list directory entries instead of contents, and do not deref‐
erence symbolic links
Comment