![]() TheReactOS tree command | |
Developer(s) | Steve Baker,DR,Microsoft,IBM,Itautec,Datalight,Toshiba, Dave Dunfield, Asif Bahrainwala |
---|---|
Written in | Unix-like,FreeDOS,ReactOS:C |
Operating system | Unix,Unix-like,MS-DOS,PC DOS,FlexOS,SISNE plus,ROM-DOS,4690 OS,PTS-DOS,OS/2,eComStation,ArcaOS,Windows,DR DOS,FreeDOS,ReactOS |
Platform | Cross-platform |
Type | Command |
License | Unix, Unix-like, FreeDOS, ReactOS:GPLv2 |
Incomputing,tree
is a recursivedirectory listingcommand orprogram that produces a depth-indented listing of files. Originating in PC- andMS-DOS, it is found inDigital ResearchFlexOS,[1]IBM/Toshiba4690 OS,[2]PTS-DOS,[3]FreeDOS,[4] IBMOS/2,[5]Microsoft Windows,[6] andReactOS. A version forUnix andUnix-like systems is also available.
Thetree
command is frequently used as part of atechnical support scam, where the command is used to occupy the command prompt screen, while the scammer, pretending to be technical support, types additional text that is supposed to look like output of the command.[7]
With no arguments,tree
lists the files in thecurrent 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.[8]
The command is available inMS-DOS versions 3.2 and later andIBM PC DOS releases 2 and later.[9]Digital ResearchDR DOS 6.0,[10]ItautecSISNE plus,[11] andDatalightROM-DOS[12] include an implementation of thetree
command.
TheTree Command for Linux was developed by Steve Baker.[13] TheFreeDOS version was developed by Dave Dunfield[14] and theReactOS version was developed by Asif Bahrainwala.[15] All three implementations are licensed under theGNU General Public License.
The Tree command is also available inmacOS as a formula installed via the command lineHomebrew package manager.[16]
$treepath/to/folder/path/to/folder/├── a-first.html├── b-second.html├── subfolder│ ├── readme.html│ ├── code.cpp│ └── code.h└── z-last-file.html1 directories, 6 files
tree(1)
– Linux User CommandsManual