yum install tree
不指定路径的话直接显示当前目录的结构 加上-L 表示只显示到指定的目录层级
tree -L 2 ./
tree/pstree
原文:https://www.cnblogs.com/0916m/p/11484508.html