With no arguments, tree lists the files in the
current directory. When directory arguments are given, tree lists all the files or directories found in the given directories each in turn. Upon completion of listing all files and directories found, tree returns the total number of files and directories listed. There are options to change the characters used in the output, and to use color output. The command is available in
MS-DOS versions 3.2 and later and
IBM PC DOS releases 2 and later.
Digital Research DR DOS 6.0,
Itautec SISNE plus, and
Datalight ROM-DOS include an implementation of the command. The
Tree Command for Linux was developed by Steve Baker. The
FreeDOS version was developed by Dave Dunfield and the
ReactOS version was developed by Asif Bahrainwala. All three implementations are licensed under the
GNU General Public License. The Tree command is also available in
macOS as a formula installed via the command line
Homebrew package manager. ==Example==