What Is Tree Linux?
Contents

The tree is a tiny, cross-platform command-line program used to recursively list or display the content of a directory in a tree-like format. It outputs the directory paths and files in each sub-directory and a summary of a total number of sub-directories and files.

What is the use of tree command in Linux?

Tree command in Linux with examples. In UNIX/LINUX 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.

What does tree command do?

TREE (Display Directory)

Purpose: Displays directory paths and (optionally) files in each subdirectory. When you use the TREE command each directory name is displayed along with the names of any subdirectories within it.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest