Tree (Unix)

From Wikipedia, the free encyclopedia
  (Redirected from Tree (command))
Jump to: navigation, search

In Unix and Unix-like systems, as well as MS-DOS and Microsoft Windows, tree is a recursive directory listing program that produces a depth-indented listing of files.

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.

The Tree Unix utility was developed by Steve Baker.[1]


$ tree path/to/folder/
├── a-first.html
├── b-second.txt
├── subfolder
│   ├── readme.txt
│   ├── code.cpp
│   └── code.h
└── z-last-file.txt

1 directories, 6 files

See also[edit]


External links[edit]