tree/pstree

tree

yum install tree

不指定路径的话直接显示当前目录的结构
加上-L 表示只显示到指定的目录层级

tree -L 2 ./

原文地址:https://www.cnblogs.com/cizao/p/11484508.html