Mac下没有tree命令,但是可以通过brew进行安装,命令如下:
brew install tree
装好后tree的用法和linux下的保持一致。参考:http://www.cnblogs.com/EasonJim/p/6809804.html