2

As simple as: How to show all sub-directories from current directory in linux?

I didn't find any question as direct as this one on the forum.

Thanks :)

Oscar_Wroclaski
  • 107
  • 1
  • 9
  • Possible duplicate of http://stackoverflow.com/questions/14352290/listing-only-directory-using-ls-in-bash – mti2935 Feb 05 '14 at 13:49

1 Answers1

4

It's probably find you are searching for:

find -type d

This will list all subdirectories of the folder - recursively. If you don't want them recursively then pass maxdepth:

find -maxdepth 1 -type d
hek2mgl
  • 152,036
  • 28
  • 249
  • 266