show a folder tree

Show folders and files as a tree, to see how a project is laid out.

  • files

Steps

  1. tree

    everything under here, as a tree

  2. tree -L 2

    two levels down

  3. tree -d

    folders only

  4. tree -a -I 'node_modules|.git'

    hidden ones too, without those folders

  5. find . -maxdepth 2 | sort

    without tree

Commands used

  • tree
  • find

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