I want to list only the directories in specified path (ls doesn't have such option). Also, can this be done with a single line command?
ls
Try this ls -d */ to list directories within the current directory
ls -d */
1.4m articles
1.4m replys
5 comments
57.0k users