用于生成目录的树形层级结构,比如下图:
.
├── alicelmxblog
│ ├── __init__.py
│ ├── config.py
│ ├── controllers
│ │ ├── __init__.py
│ │ └── bolg.py
│ ├── forms.py
│ ├── models.py
│ ├── static
│ │ ├── css
│ │ └── js
│ └── templates
│ ├── base.html
│ ├── home.html
│ └── post.html
├── fake_data.py
└── manage.py
使用homebrew,如果你还没有安装就点这里吧,中文的哦,很友好。。 在终端中输入:
$ brew install tree
tree -L 2
tree -L 2 >README.md //然后我们看下当前目录下的 README.md 文件
tree -d
tree -L n
tree -I “node_modules”