list only directories

September 15th, 2006 mysurface Posted in Common, ls | Hits: 27050 | 5 Comments »

I am searching for ls option that allow me to list only directories. I just want to list the directories but not other files and not the content of directories, I can do this

ls -d */

5 Responses to “list only directories”

  1. [...] In fact, I had done the post of list just directories long time ago, Related Postslist only directoriesI am searching for ls option that allow me to [...]

  2. [...] Related Postslist only directories I am searching for ls option that allow me to list only directories. I just want to list the [...]

  3. Thanks! Simple and straight forward…

  4. good one :)

  5. Well I really enjoyed studying it. This tip provided by you is very effective for good planning.

Leave a Reply