tree is a recursive directory listing command that produces a depth indented listing of files.
tree
To install the latest version, use homebrew:
$ brew install tree
Running tree will produce output like this:
To limit the recursion you can pass an -L flag and specify the maximum depth tree will use when searching.
-L
$ tree -L 1
Last updated 6 years ago