-a | All files are printed. | help + man |
-d | List directories only. | help + man |
-l | Follows symbolic links if they point to directories, as if they were directories. | help + man |
-f | Prints the full path prefix for each file. | help + man |
-x | Stay on the current file-system only. | help + man |
-L level | Max display depth of the directory tree. | help + man |
-R | Recursively cross down the tree each level directories (see -L option), and at each level outputting to a file named 00Tree.html (ala -o). | help + man |
-P pattern | List only those files that match the wild-card pattern. | help + man |
-I pattern | Do not list those files or directories that match the wild-card pattern. | help + man |
--gitignore | Uses git .gitignore files for filtering files and directories. | help + man |
--gitfile X | Explicitly read a gitignore file. | help |
--matchdirs | If a match pattern is specified by the -P option, this will cause the pattern to be applied to directory names (in addition to filenames). | help + man |
--metafirst | Print the meta-data information at the beginning of the line rather than after the indentation lines. | help + man |
--prune | Makes tree prune empty directories from the output, useful when used in conjunction with -P or -I. | help + man |
--info | Print information about files found in .info files. | help + man |
--infofile X | Explicitly read info file. | help |
--noreport | Omits printing of the file and directory report at the end of the tree listing. | help + man |
--charset X | Use charset X for terminal/HTML and indentation line output. | help |
--condense | Condenses the output of directory 'singletons' -- directories that themselves only contain a single directory, onto a single line and does so recursively. | help + man |
-o filename | Output to file instead of stdout. | help + man |
-q | Print non-printable characters in filenames as question marks instead of the default. | help + man |
-N | Print non-printable characters as is instead of as escaped octal numbers. | help + man |
-Q | Quote the names of files in double quotes. | help + man |
-p | Print the file type and permissions for each file (as per ls -l). | help + man |
-u | Print the username, or UID # if no username is available, of the file. | help + man |
-g | Print the group name, or GID # if no group name is available, of the file. | help + man |
-s | Print the size of each file in bytes along with the name. | help + man |
-h | Print the size of each file but in a more human readable way, e.g. appending a size letter for kilobytes (K), megabytes (M), gigabytes (G), terabytes (T), petabytes (P) and exabytes (E). | help + man |
--si | Like -h but use SI units (powers of 1000) instead. | help + man |
--du | For each directory report its size as the accumulation of sizes of all its files and sub-directories (and their files, and so on). | help + man |
-D | Print the date of the last modification time or if -c is used, the last status change time for the file listed. | help + man |
-F | Append a /' for directories, a =' for socket files, a ' for executable files, a >' for doors (Solaris) and a |' for FIFO's, as per ls -F | help + man |
--inodes | Prints the inode number of the file or directory | help + man |
--device | Prints the device number to which the file or directory belongs | help + man |
--acl (Linux | Prints the permissions, and if an ACL is present on the file appends + to the list of permissions. | help + man |
--selinux (Linux | Prints the SELinux label for a file if one is present for it. | help + man |
-v | Sort files alphanumerically by version. | help + man |
-t | Sort the output by last modification time instead of alphabetically. | help + man |
-c | Sort the output by last status change instead of alphabetically. | help + man |
-U | Leave files unsorted. | help + man |
-r | Sort the output in reverse order. | help + man |
--dirsfirst | List directories before files (-U disables). | help + man |
--filesfirst | List files before directories (-U disables). | help + man |
--sort X | Select sort: name,version,size,mtime,ctime,none. | help |
-i | Makes tree not print the indentation lines, useful when used in conjunction with the -f option. | help + man |
-A | Turn on ANSI line graphics hack when printing the indentation lines. | help + man |
-S | Turn on CP437 line graphics (useful when using Linux console mode fonts). | help + man |
-n | Turn colorization off always, over-ridden by the -C option, however overrides CLICOLOR_FORCE if present. | help + man |
-C | Turn colorization on always, using built-in color defaults if the LS_COLORS or TREE_COLORS environment variables are not set. | help + man |
--compress # | Compress indentation lines. | help |
-X | Prints out an XML representation of the tree. | help + man |
-J | Prints out an JSON representation of the tree. | help + man |
-H baseHREF | Prints out HTML format with baseHREF as top directory. | help |
-T string | Replace the default HTML title and H1 header with string. | help + man |
--nolinks | Turns off hyperlinks in HTML output. | help + man |
--hintro X | Use file X as the HTML intro. | help |
--houtro X | Use file X as the HTML outro. | help |
--hyperlink | Enable OSC 8 terminal hyperlinks for terminals that support them. | help + man |
--scheme X | Set OSC 8 hyperlink scheme, default file:// | help |
--fromfile | Reads a directory listing from a file rather than the file-system. | help + man |
--fflinks | Processes symbolic link information found in a file, as from the output of 'tree -fi --noreport'. | help + man |
--opt-toggle | Enables option "toggling". | help + man |
--version | Outputs the version of tree. | help + man |
--help | Print usage and this help message and exit. | help + man |
--ignore-case | If a match pattern is specified by the -P or -I option, this will cause the pattern to match without regard to the case of each letter. (in the manual page but not in --help) | man |
--fromtabfile | Like --fromfile, tree reads a directory tree from a text file where the files are tab indented in a tree like format to indicate the directory nesting level. (in the manual page but not in --help) | man |