HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

tree — Display a graphical tree of the directory structure for a path. More information: <https://learn.mic

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thedirectorygraphicalcommandtreeclidisplay
windows

Problem

How to use the tree command: Display a graphical tree of the directory structure for a path. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/tree>.

Solution

tree — Display a graphical tree of the directory structure for a path. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/tree>.

Display the tree for the current directory:
tree


Display the tree for a specific directory:
tree {{path\to\directory}}


Display the tree for a directory including [f]iles:
tree {{path\to\directory}} /f


Display the tree using [a]SCII characters instead of extended characters:
tree {{path\to\directory}} /a

Code Snippets

Display the tree for the current directory

tree

Display the tree for a specific directory

tree {{path\to\directory}}

Display the tree for a directory including [f]iles

tree {{path\to\directory}} /f

Display the tree using [a]SCII characters instead of extended characters

tree {{path\to\directory}} /a

Context

tldr-pages: windows/tree

Revisions (0)

No revisions yet.