This is a neat package that can display a directory tree in a graphical way within the terminal. There are multiple uses for this, and a few that are immediately obvious for me are for any developers writing technical documentation. Additionally, this could be useful with fabric (which iβm planning on writing about more soon), as Iβve been playing with it for the past week or so.
If youβd like to install, you can install it using your systemβs package manager. For example:
- On Ubuntu-based systems:
sudo apt-get install tree
- On macOS (with Homebrew):
brew install tree
Hereβs how to use it:
- Open your terminal.
- Type
tree .
in whatever directory youβd like to see a directory tree of - Press Enter.
Your output should look something like this:
h/t: https://oldmanprogrammer.net/source.php?dir=projects/tree