List directories only In order to list only directories at a given path, ls can be used with a directories: flag $ ls -d /path/to/dir/* The glob at the end is important.