Linux查看目录结构


 description

在Linux中以树形结构打印当前2级目录结构

 command

tree -L 2

 parameter

tree : 以树状图列出目录的内容
-L level : 级别目录

 result

.
├── test
│   └── a
├── test2
│   ├── a
│   └── c
└── testFile

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.