Many of us know how to list the files in Linux environment. But if you are looking to list only the directories, this is the blog you are looking for.
The find command also allows you to limit search to a particular directory depth. One command line option that lets you do this is -maxdepth. Here '-maxdepth 5' forces 'find' to go inside and search only three levels, with the first level being your top level (or the current working) directory
Command:
find . -maxdepth 5 -type d