1. 安装tree yum install tree 2. 生成目录树 tree //当前目录 tree [directory] 转载于:https://blog.51cto.com/13713878410/1569874