文章目录

1.详细命令介绍[参考]

​https://www.runoob.com/linux/linux-comm-tree.html​

2.经典命令:tree -L 2

Linux命令之tree_xml

localhost:demo-jms gaoxinfu$ pwd
/Users/gaoxinfu/demo-jms
localhost:demo-jms gaoxinfu$ tree -L 2
.
├── HELP.md
├── demo-jms.iml
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
├── main
└── test

3 directories, 5 files
localhost:demo-jms gaoxinfu$

-L 显示到多少层

localhost:demo-jms gaoxinfu$ tree -L 4
.
├── HELP.md
├── demo-jms.iml
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
├── main
├── java
└── com
└── resources
└── application.properties
└── test
└── java
└── com

8 directories, 6 files
localhost:demo-jms gaoxinfu$