listing only directories in linux using ls command
will be the command used by many to list directory, but it will show only "." as output.
The correct way to list the directories in current folder is
ls -d */
To list directories down the tree, you can use