vsupalov

CLI Snippet: View Path Content as a Tree

Sometimes I need one of those fancy directory overview-ish examples for a peace of writing - be it docs or new article.

Here’s a tool which can help with that. Say hi to tree.

Installation

I’m guessing for the non-mac part here:

# mac:
$ brew install tree
# ubuntu-ish
$ sudo apt-get install tree

Usage

$ tree PATH_YOU_CARE_ABOUT
$ tree .

This will spit out a nice shiny overview of the directory in question!

You can see an example in the article over here.