Linux common commands-36: tree

The tree command is used to list the contents of a directory in tree-like form.

Syntax format: tree [parameter]

Common parameters:



 # 只显示2层目录tree -L 2

 # 只显示目录,不显示文件tree -d

 # 根据目录和文件的更改时间来排序tree -t

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.