Content deleted Content added
No edit summary Tags: Manual revert Mobile edit Mobile web edit |
Citation bot (talk | contribs) Misc citation tidying. | Use this bot. Report bugs. | #UCB_CommandLine |
||
(34 intermediate revisions by 21 users not shown) | |||
Line 1:
{{Short description|Shell command in various operating systems}}
{{lowercase title}}
{{Infobox software
Line 10 ⟶ 11:
| latest release version =
| latest release date =
| programming language = [[Unix-like]], [[FreeDOS]], [[ReactOS]]: [[C (programming language)|C]]
| operating system = [[Unix]], [[Unix-like]], [[MS-DOS]], [[IBM PC DOS|PC DOS]], [[FlexOS]], [[SISNE plus]], [[ROM-DOS]], [[4690 Operating System|4690 OS]], [[PTS-DOS]], [[OS/2]], [[eComStation]], [[ArcaOS]], [[Microsoft Windows|Windows]], [[DR DOS]], [[FreeDOS]], [[ReactOS]]
| platform = [[Cross-platform]]
Line 16 ⟶ 18:
| website =
}}
In [[computing]], '''<code>tree</code>''' is a recursive [[directory (computing)|directory]] listing [[command (computing)|command]] or [[Computer program|program]] that produces a depth-indented listing of files. Originating in PC- and
{{cite web |title=PTS-DOS 2000 Pro User Manual |publisher=[[Paragon Technology GmbH]] |___location=Buggingen, Germany |date=1999 |url=http://download.paragon-software.com/doc/manual_dos_eng.pdf |access-date=2018-05-12 |url-status=live |archive-url=https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf |archive-date=2018-05-12}}</ref> [[FreeDOS]],<ref>{{cite web|url=http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/group-base.html|title=FreeDOS group -- FreeDOS Base|work=FreeDOS on ibiblio.org}}</ref> IBM [[OS/2]],<ref>{{cite web|url=http://www.jatomes.com/Help/Os2Cmd.php#TREE|title=JaTomes Help - OS/2 Commands|access-date=2019-07-27|archive-date=2019-04-14|archive-url=https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php#TREE|url-status=dead}}</ref> [[Microsoft Windows]],<ref>{{cite web|url=https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tree|title=Tree|website=Microsoft Docs|date=3 February 2023 }}</ref> and [[ReactOS]]. A version for [[Unix]] and [[Unix-like]] systems is also available.
The <code>tree</code> command is frequently used as part of a [[technical 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.<ref>{{Cite web|url=https://www.tripwire.com/state-of-security/featured/the-world-of-the-technical-support-scam/|title=The World of the Technical Support Scam|date=2016-11-09|website=The State of Security|language=en-US|access-date=2019-12-29}}</ref>
Line 24 ⟶ 26:
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
The ''Tree Command for Linux''
The Tree command is also available in [[macOS]] as a formula installed via the command line [[Homebrew (package manager)|Homebrew]] package manager.<ref name="HM tree info 1">{{cite web|url=https://formulae.brew.sh/formula/tree|title=Homebrew - Tree (Formala)|work=Homebrew|access-date=2024-05-14}}</ref>
==Example==
Line 44 ⟶ 48:
==See also==
* [[dir (command)|dir]]
* [[ls]]
* [[pstree]]
Line 59 ⟶ 64:
==External links==
{{Wikibooks|Guide to Windows Commands}}
*[http://mama.indstate.edu/users/ice/tree/ The Tree Command for Linux Homepage] [https://gitlab.com/OldManProgrammer/unix-tree New repository]
*[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tree tree | Microsoft Docs]
Line 67 ⟶ 72:
[[Category:External DOS commands]]
[[Category:OS/2 commands]]
[[Category:ReactOS commands]]
[[Category:Unix file system-related software]]
[[Category:Windows commands]]
|