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:

Example

 tree

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

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

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

This article is reprinted from https://xugaoxiang.com/2022/06/11/linux-cmds-36-tree/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment