Skip to content

Show a space as a page tree

You want to see the hierarchy of a space or subtree at a glance — parents, children, and depth — before you navigate or reorganize by name.

Use tree for an ASCII page tree. Default depth is 3; pass -L / --maxdepth to change it. This is a visual listing. Folders appear in the tree too. To duplicate a section, use cp -r (max 200 pages; DEST may be in another space). Shell is not a multi-select move UI.

Watch on YouTube: youtu.be/zhWgfwWmI0c

$ cd YourSpace
$ tree
$ tree -L 2
$ tree ./Docs
$ tree -L 2 ./Docs

tree -L 2 is a good first look when a space is deep. Combine with ls or find when you need paths for a later named mv / cp (max 100 sources).

  • tree only lists. cp -r copies a tree (max 200 pages), including into another space with -y.
  • Default depth is 3; use -L / --maxdepth to widen or narrow.
  • For moves, name sources or pipe from find; preview with mv -n. See Reorganize pages.