Is there any equivalent of the Ubuntu tree command for Mac OS X ?
migrated from stackoverflow.com Nov 21 '11 at 10:41
|
Yes, there is, and it's called You can install it
|
|||||||
|
|
Hi: There isn't a tree command per se however you can do this: Save the following script to /usr/local/bin/tree
chmod 755 /usr/local/bin/tree and enjoy Of course you may have to create /usr/local/bin |
|||||||||||
|
|
Or if your administrator won't let you install any of the
Edit the Makefile to comment linux part and uncomment osx area:
And while you're at it, if you want to force tree to always colorize the output, you can always edit the Finally hit Tribute goes to Shaun Chapman for his original post on his blog. |
|||
|
|
An alternative using
|
||||
|
|
|
It's not as pretty as gnu tree ... but it's real easy to alias in bash ... You can even add a little color by tacking the G option on to osx's ls color.
|
|||
|
|
treedoes. – hop Nov 21 '11 at 10:43treeis not part of GNU Coreutils. – slhck♦ Nov 21 '11 at 10:59