To show directory structure as a tree similarly as Pstree

directory, tree, unix

Solution

There is a command to do this called "tree" on many Unix operating systems but I don't know if it's available in MacOS X

Problem

I would like to see my current directory structure as a tree such that no directories below the current directory is shown, similarly as `Pstree`. I did not find an option for that from `ls` in OS X Leopard. How can you make a tree of your current directory structure in terminal?

Original source