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.
A word from the author
Hi, I'm Vladislav. I work with small teams and bootstrapped founders who need to get their infrastructure right — reliable deployments, less operational risk, and systems that don't fall apart the moment the founder looks away. If that sounds like your situation, here's how we can work together.
I've been writing about Docker, deployment, and infrastructure since 2017. If you'd like to read more, the articles page is a good place to start — or you can sign up for the newsletter to get new pieces by email.