list only folders

List the folders here and not the files, or only the files.

  • files

Steps

  1. ls -d */

    the folders here

  2. find . -maxdepth 1 -type d

    the same, hidden ones too

  3. find . -maxdepth 1 -type f

    only the files

  4. tree -d -L 2

    the folders two levels down, as a tree

Commands used

  • ls
  • find
  • tree

Each has a page in lore: lore ls opens it.