Skip to content

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 */*/*/

About the Author

Nathan Giesbrecht is a web design and web development professional. Nathan likes Wordpress, the Winnipeg Jets, green tea, hot dogs and golf.

Spread The Love, Share Our Article

  • Delicious
  • Digg
  • Newsvine
  • RSS
  • StumbleUpon
  • Technorati
  • Twitter

Related Posts


  1. EIW-Web Design Company June 5, 2014

    Thanks for posting its helps a lot linux directory findings.


There are no trackbacks on this entry.

Add a Comment