Forrest logo
back to the tree tool

tree:tldr:97d69

tree: Print the tree without indentation lines, showing the full path instead (use `-N` to not escape non-printable characters).
$ tree -i -f
try on your machine

The command "tree -i -f" is used to display a hierarchical directory tree structure along with the files and directories within the current directory, with each line representing a file or directory.

Here is the breakdown of the command:

  • "tree": This is the command itself. It is a standalone utility in Unix-like operating systems that recursively displays directory tree structures.

  • "-i": This option enables the tree to print the indentation lines, indicating the hierarchical structure of directories and subdirectories.

  • "-f": This option tells tree to also display the files present in the directory tree structure. By default, tree only shows directories.

By combining these options, "tree -i -f" will provide an output showing the complete hierarchy of directories and subdirectories within the current directory, including all the files present in those directories.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tree tool