Mac终端显示输树状文件结构

使用 tree 在终端显示树状文件结构

安装 tree

使用 brew 进行安装

$ brew install tree

使用

导出文件

> 文件名.格式 的形式导出

$ tree -L 1 > tree.md