According to manual
Code:
-d, --directory
list directory entries instead of contents, and do not dereference symbolic links
Just like if you use
It shows the details of current directory.
If you want to see the list of sub-directories only (not the sub of sub-directories, only sub-directories), use this.
If you want to print name of sub directories only,
Code:
ls -l | grep "^d" | awk '{print $NF}'