tree
is a command line tool that recursively lists the contents of a directory in a tree format, so that all directories, subdirectories and files are listed in a hierarchical manner, thus intuitively Shows the organization of files and folders.
The following is the installation and use method of tree
under Windows and Linux systems
apt update && apt install tree
# 显示指定路径下的目录树 tree /d/temp # 限制最大的展示深度 tree -L 3 # 只显示目录不显示文件 tree -d # 显示包括隐藏的文件和目录 tree -a # 为每个文件打印完整路径前缀 tree -f
tree /f > tree.txt
tree.exe
file in the bin folder. Move the file to your preferred software installation directory, such as C:ProgramFilestreetree.exe
. The above is the detailed content of Use tree to generate a file directory tree for display. For more information, please follow other related articles on the PHP Chinese website!