List only directories with ls from Linux Command Line
To list only directories from a linux command line, use the following command:
ls -d */
This will list all the directories in the current directory.
You can also list all directories that are 3 layers deep from the current directory with:
ls -d */*/*/
There are no comments on this entry.
There are no trackbacks on this entry.