1. 安装tree

yum install tree


2. 生成目录树


tree //当前目录


tree [directory]