安装
yum install -y tree
使用,比如显示/root的2层树结构
tree -L 2 /root
效果
/root
├── \033
├── code
│ └── helloworld.py
├── soft
│ ├── conf
│ ├── inf
│ ├── lanmp.sh
│ ├── lanmp_v3.3.tar.gz
│ ├── lib
│ ├── logs
│ └── src
└── test.txt
yum install -y tree
tree -L 2 /root
/root
├── \033
├── code
│ └── helloworld.py
├── soft
│ ├── conf
│ ├── inf
│ ├── lanmp.sh
│ ├── lanmp_v3.3.tar.gz
│ ├── lib
│ ├── logs
│ └── src
└── test.txt