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
In order to list the directories in current working directory ls -d */ can be used. And If you need to list the hidden directories use this command ls -d .*/
ls -d */
ls -d .*/