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

Comments

There are no comments on this entry.

Trackbacks

There are no trackbacks on this entry.

Add a Comment

Required

Required

Optional


framework-break