Navigation
The tree command
Draws the tree of folders and files, like a diagram.
Syntax
tree [ruta]Copy-ready examples
$ treeTree of the current folder$ tree DocumentosThe one of a specific folderYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- In huge folders the output is long: limit it with -L.
FAQ
Is tree installed everywhere?
Not always: on many systems you install it with apt.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course