With no arguments, <code>tree</code> lists the files in the [[working directory|current directory]]. When directory arguments are given, <code>tree</code> lists all the files or directories found in the given directories each in turn. Upon completion of listing all files and directories found, <code>tree</code> 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.<ref>{{man|1|tree|die.net}}</ref>
The command is available in [[MS-DOS]] versions 3.2 and later and [[IBM PC DOS]] releases 2 and later.<ref name="RUNNINGMSDOS">{{Cite book|author-last=Wolverton|author-first=Van|title=Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition|date=2003|publisher=[[Microsoft Press]]|isbn=0-7356-1812-7}}</ref> [[Digital Research]] [[DR DOS 6.0]],<ref name="drdos6userguide">[https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf DR DOS 6.0 User Guide Optimisation and Configuration Tips]</ref> [[Itautec]] [[SISNE plus]],<ref name="SISNE_plus">{{cite web |author=Itautec |author-link=Itautec |date=2015-05-14 |title=SISNE plus - Referência Sumária |language=pt |trans-title=SISNE plus - Quick Reference Manual |date=2015-05-14 |author=Itautec |author-link=Itautec |work=Datassette |id=COD 23987-01-4 |url=https://datassette.org/manuais/ibm-pc/sisne-plus-referencia-sumaria |access-date=2020-01-12 |url-status=live |archive-url=https://web.archive.org/web/20190928211058/https://datassette.org/manuais/ibm-pc/sisne-plus-referencia-sumaria |archive-date=2019-09-28 |access-date=2020-01-12 |work=Datassette |language=pt |id=COD 23987-01-4}} [https://web.archive.org/web/20190928211109/http://files3.datassette.org/manuais/sisne_plus_referencia_sumaria.pdf] (86 pages)</ref> and [[Datalight]] [[ROM-DOS]]<ref>{{Cite web|url=https://www.datalight.com/assets/files/ROM-DOS_Users_Guide.pdf|title=Datalight ROM-DOS User's Guide|website=www.datalight.com}}</ref> include an implementation of the {{code|tree}} command.
The ''Tree Command for Linux'' was developed by Steve Baker.<ref>{{citeCite web |urllast=http://mama.indstate.edu/users/ice/tree/Baker |first=Steve |title=TheHome Tree- CommandOld forMan LinuxProgrammer Homepage|url=https://oldmanprogrammer.net/source.php?dir=projects/tree |authorurl-status=Steve Bakerlive |websiteaccess-date=Center for Biological Computing, [[Indiana State University]] Department of Life Sciences2024-01-26}}</ref> The [[FreeDOS]] version was developed by Dave Dunfield<ref>{{cite web|url=http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/tree.html|title= FreeDOS Package -- Tree (FreeDOS Base)|work=FreeDOS on ibiblio.org}}</ref> and the [[ReactOS]] version was developed by Asif Bahrainwala.<ref>{{GitHub|https://github.com/reactos/reactos/blob/master/base/applications/cmdutils/tree/tree.c}}</ref> All three implementations are licensed under the [[GNU General Public License]].