使用 `tree` 命令就可以帮我们搞定这一切啦
tree
tree > tree.text
tree -L 3 >tree.text
tree -I 'node_modules' -L 3 > tree.text