# Install tree on macOS using Homebrewbrewinstalltree
Basic Usage
# Display the tree structure of the current directorytree
# Display the tree structure of a specific directorytree/path/to/directory
Display Options
# Display all files and directories, including hidden onestree-a
# Display only directoriestree-d
# Display the full path prefix for each filetree-f
# Follow symbolic linkstree-l
Sorting Options
# Sort files alphabetically (default)tree-v
# Sort files by last modification timetree-t
# Sort files by sizetree-s
# Reverse the order of the sorttree-r
Depth Options
# Limit the depth of the treetree-L2# Print the tree depth of each file and directorytree-D
File Options
# Print the size of each file in bytestree-s
# Print the size of each file in human-readable formattree-h
# Print the date of the last modification time for each filetree-p
Output Options
# Print the tree structure without indentation linestree-i
# Print the tree structure with ANSI colorizationtree-C
# Print the tree structure with file permissionstree-p
# Print the tree structure and include the report at the endtree-v