listing only directories in linux using ls command
by rajesh[ Edit ] 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