[Mac] Installing tree Command with Homebrew

Tadashi Shigeoka ·  Mon, January 9, 2012

In Mac OS X, I installed the tree command using Homebrew to use it.

If you haven’t installed Homebrew yet, please refer to this article.

[Mac] Installing Homebrew | CodeNote.net

■ Installing tree Command

Just install it with brew install and you’re OK.

$ brew install tree
==> Downloading http://mama.indstate.edu/users/ice/tree/src/tree-1.6.0.tgz
######################################################################## 100.0%
==> make
==> make install
/usr/local/Cellar/tree/1.6.0: 6 files, 124K, built in 7 seconds

Now the tree command is available, so let’s try running it.

$ tree
.
├── Gemfile
├── app.rb
├── config.ru
└── public
    ├── css
    └── js

3 directories, 3 files

The tree command is convenient!

That’s all from the Gemba.