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
ls -l | grep '^d'
You can make an alias and put it into the profile file
alias ld="ls -l| grep '^d'"