tree
Verified for current stable LTS
Tree Command: Print Files And Directories Up To N Levels
Use for print files and directories up to n levels with Tree. Exact CLI syntax to print files and directories up to n levels using Tree.
When to use this: Use for print files and directories up to n levels with Tree.
Command Syntax
tree -L <num> tree -L <num> Live Command Builder
Final Command
tree -L <num> Command Breakdown
-L- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to print files and directories up to n levels using Tree.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Tree Command: Display Tree Ascii Characters
tree <path\to\directory> /a Tree Command: Display Tree Current Directory tree Tree Command: Display Tree Specific Directory tree <path\to\directory> Tree Command: Display Tree With Files tree <path\to\directory> /f Tree Command: Print Directories Only tree -d