CLI Snippet: View Path Content as a Tree

TAGS: SNIPPET

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.

Subscribe to my newsletter!
You'll get notified via e-mail when new articles are published. I mostly write about Docker, Kubernetes, automation and building stuff on the web. Sometimes other topics sneak in as well.

Your e-mail address will be used to send out summary emails about new articles, at most weekly. You can unsubscribe from the newsletter at any time.

Für den Versand unserer Newsletter nutzen wir rapidmail. Mit Ihrer Anmeldung stimmen Sie zu, dass die eingegebenen Daten an rapidmail übermittelt werden. Beachten Sie bitte auch die AGB und Datenschutzbestimmungen .

vsupalov.com

© 2024 vsupalov.com. All rights reserved.