How to Use: tree

Install Link to heading

sudo pacman -S tree

Usage Link to heading

Basic usage is like this:

tree

But that is incomplete, lacking hidden files and colors…

Proper Usage Link to heading

tree -aCI '.git'

And it looks like this:

.
├── Dockerfile
├── .dockerignore -> .gitignore
├── .editorconfig
├── .gitignore
├── README.md
└── src
    └── main.sh

You won’t see it in this snippet, but -C gives it nice easy to read colors!

Separate multiple ignore patters by | inside the string:

tree -aCI '.git|tmp|vendor'