Here is a great little command line trick to list only the subdirectories in your current working directory. $ ls -d */