显示目录结构信息(tree)
1)tree 目录
---指定显示所有数据结构信息
[root@hgg ~]# tree /hgg
/hgg
└── hgg01
└── hgg02
├── hgg03
│ └── hgg04
├── hggboy01.txt
├── hggboy02.txt
├── hggboy03.txt
├── hggboy04.txt
├── hggboy05.txt
├── hggboy06.txt
├── hggboy07.txt
├── hggboy08.txt
├── hggboy09.txt
└── hggboy10.txt
2)tree -L 2 (第几层) 目录
---查看目录结构层级信息
[root@hgg ~]# tree -L 2 /hgg
/hgg
└── hgg01
└── hgg02
3)tree -d 目录
---显示目录中所有结构信息
[root@hgg ~]# tree -d /hgg
/hgg
└── hgg01
└── hgg02
└── hgg03
└── hgg04