Directories in the current path can be displayed in the following ways:
Use ls with -d to print directories:
$ ls -d */
Use ls -F with grep:
$ ls -F | grep "/$"
Use ls -l with grep:
$ ls -l | grep "^d"
Use find to print directories:
$ find . -type d -maxdepth 1 -print
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.