listing only directories in linux using ls command

by rajesh 2013-04-20 10:40:24

ls -d
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
ls -d */*/
1768
like
0
dislike
0
mail
flag

You must LOGIN to add comments