tree -C
:颜色显示html
tree -f
: 显示文件全路径node
tree -L 2
:只显示2层app
tree -P *.pl
:只显示文件目录和*.pl的perl文件。code
tree -F
:显示目录后面的\;显示可执行文件*;功能相似ls -F
htm
tree -I
:忽略某个目录或者文件内容,支持正则blog
tree -I "node_modules" tree -I "node_modules|cache|test_*"
tree –help
:帮助手册it
# tree -I "venv|__pycache*|*.pyc" -FCL 3
. ├── app/ │ ├── __init__.py │ ├── routes.py │ └── templates/ │ ├── base.html │ └── index.html ├── config.py └── microblog.py
# tree -FCL 2
# tree -I "venv" -FCL 2