Jump to content

tree (command)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Danpape (talk | contribs) at 21:31, 2 June 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


tree is a program on Unix and Unix-like systems. tree is a recursive directory listing program that produces a depth indented listing of files. The command-syntax is:

tree [options] <directory_name>

tree can be invoked with options to change its behaviour, which may vary from one Unix to another.

With no arguments, tree lists the files in the current directory. When directory arguments are given, tree lists all the files and/or directories found in the given directories each in turn. Upon completion of listing all files/directories found, tree returns the total number of files and/or directories listed.

If your version of a Unix and Unix-like systems does not include tree, it can be obtained from http://mama.indstate.edu/users/ice/tree/

See also